PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / trunk
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF vtrunk
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
← All changes | inc/classes/class-imagify-settings.php +14 -0 2.3.3 → trunk View file →
@@ -410,8 +410,22 @@
410 410 }
411 411 }
412 412
413 413 /**
414 + * `options.php` is what registers the "Settings saved." notice and stores it in the
415 + * `settings_errors` transient. We bypass it on network installations, so do it here.
416 + *
417 + * The guard mirrors core: a success notice is only queued when nothing else has
418 + * reported a problem during this request, so a real error from another plugin is
419 + * never contradicted by a "Settings saved." underneath it.
420 + */
421 + if ( ! count( get_settings_errors() ) ) {
422 + add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'success' );
423 + }
424 +
425 + set_transient( 'settings_errors', get_settings_errors(), 30 );
426 +
427 + /**
414 428 * Redirect back to the settings page that was submitted.
415 429 */
416 430 imagify_maybe_redirect( false, [ 'settings-updated' => 'true' ] );
417 431 }