WebP Express options for 0.12. '; // The webp realizer rules where errornous, so recreate rules, if necessary. (see issue #195) if (($config['enable-redirection-to-webp-realizer']) && ($config['destination-folder'] != 'mingled')) { //HTAccess::saveRules($config); // Commented out because rules are going to be saved in migrate12 $msg .= 'Also fixed buggy .htaccess rules. '; } if (!$config['alter-html']['enabled']) { if ($config['operation-mode'] == 'varied-responses') { $msg .= '
In WebP Express 0.12, the Alter HTML option is no longer in beta. ' . 'You should consider to go and activate it - ' . 'It works great in Varied Image Responses mode too. '; } else { $msg .= '
In WebP Express 0.12, Alter HTML is no longer in beta. ' . 'Now would be a good time to go and activate it!. '; } } // Display announcement. But only show while it is fresh news (we don't want this to show when one is upgrading from 0.11 to 0.14 or something) // - the next release with a migration in it will not show the announcement if (WEBPEXPRESS_MIGRATION_VERSION == 7) { $msg .= '

Btw: From this release and onward, WebP Express is multisite compliant.'; } Messenger::addMessage( 'info', $msg ); if ($config['operation-mode'] == 'no-conversion') { Messenger::addMessage( 'info', 'WebP Express introduces a new operation mode: "No conversion". ' . 'Your configuration has been migrated to this mode, because your previous settings matched that mode (nothing where set up to trigger a conversion).' ); } // PSST: When creating new migration files, remember to update WEBPEXPRESS_MIGRATION_VERSION in admin.php Option::updateOption('webp-express-migration-version', '7'); // Not completely sure if this could fail miserably, so commented out. // We should probably do it in upcoming migrations // \WebPExpress\KeepEwwwSubscriptionAlive::keepAliveIfItIsTime($config); } else { Messenger::addMessage( 'error', 'Failed migrating webp express options to 0.12+. Probably you need to grant write permissions in your wp-content folder.' ); } } webpexpress_migrate7();