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 | views/page-settings.php +12 -0 2.3.0 → trunk View file →
@@ -16,8 +16,20 @@
16 16 $wrapper_class = isset( $notices[ $notice ] ) || isset( $plugins_list['wp-rocket/wp-rocket.php'] ) ? 'imagify-have-rocket' : 'imagify-dont-have-rocket';
17 17 ?>
18 18 <div class="wrap imagify-settings <?php echo esc_attr( $wrapper_class ); ?> imagify-clearfix">
19 19
20 + <?php
21 + /**
22 + * Core only requires `options-head.php` (which calls `settings_errors()`) when the page
23 + * parent is `options-general.php`. That is the case when Imagify is registered with
24 + * `add_options_page()`, but not when it is network-activated and registered with
25 + * `add_menu_page()`/`add_submenu_page()`. Print the notices ourselves in that case.
26 + */
27 + if ( 'options-general.php' !== ( isset( $GLOBALS['parent_file'] ) ? $GLOBALS['parent_file'] : '' ) ) {
28 + settings_errors();
29 + }
30 + ?>
31 +
20 32 <div class="imagify-col imagify-main">
21 33
22 34 <?php $this->print_template( 'part-settings-header' ); ?>
23 35 <div class="imagify-main-content">