Skip to content

Commit

Permalink
correct the display method option name
Browse files Browse the repository at this point in the history
  • Loading branch information
wordpressfan committed Mar 8, 2024
1 parent 7fe8a19 commit e930c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/admin/upgrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ function _imagify_new_upgrade( $network_version, $site_version ) {

if ( version_compare( $site_version, '2.2' ) < 0 ) {
Imagify_Options::get_instance()->set( 'display_nextgen', Imagify_Options::get_instance()->get( 'display_webp', 0 ) );
Imagify_Options::get_instance()->set( 'display_nextgen_method_rewrite', Imagify_Options::get_instance()->get( 'display_webp_method_rewrite' ) );
Imagify_Options::get_instance()->set( 'display_nextgen_method', Imagify_Options::get_instance()->get( 'display_webp_method' ) );
}
}
add_action( 'imagify_upgrade', '_imagify_new_upgrade', 10, 2 );
Expand Down

0 comments on commit e930c49

Please sign in to comment.