PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 4.3.2
Adminify – White Label, Admin Menu Editor, Login Customizer v4.3.2
4.3.2 4.3.1 4.3.0 4.2.26 4.2.25 4.2.24 4.2.23 4.2.22 4.2.21 4.2.20 4.2.19 4.2.18 4.2.17 4.2.16 4.2.15 4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 All 165 releases
← All changes | Inc/Admin/Options/Customize.php +17 -14 4.3.04.3.2 View file →
@@ -292,22 +292,25 @@
292 292 'remove_title' => __('Remove Favicon', 'adminify'),
293 293 'default' => $this->get_default_field('admin_favicon_logo'),
294 294 ];
295 295
296 - // Gutenberg Editor Logo
297 - $fields[] = [
298 - 'id' => 'gutenberg_editor_logo',
299 - 'type' => 'media',
300 - /* translators: %s: pro upgrade badge HTML */
301 - 'title' => sprintf(__('Gutenberg Editor Logo %s', 'adminify'), Utils::upgrade_pro_badge()),
302 - 'class' => 'adminify-pro-fieldset adminify-pro-notice adminify-pro-pointer',
303 - 'subtitle' => __('Replace Gutenberg Post/Page WordPress Logo', 'adminify'),
304 - 'library' => 'image',
305 - 'preview_size' => 'thumbnail',
306 - 'button_title' => __('Add Editor Logo', 'adminify'),
307 - 'remove_title' => __('Remove Editor Logo', 'adminify'),
308 - 'default' => $this->get_default_field('gutenberg_editor_logo'),
309 - ];
296 + // Gutenberg Editor Logo. WordPress 7.1 dropped the class this hooks
297 + // onto, so the field is only offered where it can still do something.
298 + if ( Utils::is_wp_below_7_1() ) {
299 + $fields[] = [
300 + 'id' => 'gutenberg_editor_logo',
301 + 'type' => 'media',
302 + /* translators: %s: pro upgrade badge HTML */
303 + 'title' => sprintf(__('Gutenberg Editor Logo %s', 'adminify'), Utils::upgrade_pro_badge()),
304 + 'class' => 'adminify-pro-fieldset adminify-pro-notice adminify-pro-pointer',
305 + 'subtitle' => __('Replace Gutenberg Post/Page WordPress Logo', 'adminify'),
306 + 'library' => 'image',
307 + 'preview_size' => 'thumbnail',
308 + 'button_title' => __('Add Editor Logo', 'adminify'),
309 + 'remove_title' => __('Remove Editor Logo', 'adminify'),
310 + 'default' => $this->get_default_field('gutenberg_editor_logo'),
311 + ];
312 + }
310 313
311 314 }
312 315
313 316