Skip to content

Commit a997281

Browse files
chore: migrate "lazyload_type" all to fixed on dashboard settings
1 parent 668511d commit a997281

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

inc/admin.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,6 +1345,12 @@ private function localize_dashboard_app() {
13451345
];
13461346
$lang_code = isset( $available_languages[ $language ] ) ? 'de' : 'en';
13471347

1348+
// Migrate settings if needed.
1349+
if ( isset( $service_data['lazyload_type'] ) && 'all' === $service_data['lazyload_type'] ) {
1350+
$service_data['lazyload_type'] = 'fixed';
1351+
$service_data['skip_lazyload_images'] = 0;
1352+
}
1353+
13481354
return [
13491355
'strings' => $this->get_dashboard_strings(),
13501356
'assets_url' => OPTML_URL . 'assets/',

0 commit comments

Comments
 (0)