Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#55171 closed defect (bug) (duplicate)

PHP Notice occur in customize screen in case of Block Theme

Reported by: kurudrive's profile kurudrive Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Customize Keywords:
Focuses: Cc:

Description

Description

Essentially Block theme don't need customizer.
But in case of activating any plugin that use customizer that, become can open customizer.

When using a Block theme,
If open customizer that PHP notice is occur.

Step-by-step reproduction instructions

  1. Set wp-config.php WP_DEBUG true
  2. Activate Twenty Twenty-Two or other block theme.
  3. Install and activate plugin that using customizer.

ex.

<?php
/**
 * Plugin Name: Merely Open Customizer
 * Description: This is the plugin that to be check customize screen that in case of any combined plugin of using customizer.
 */

add_action(
        'customize_register',
        function( $wp_customize ) {
                // Can be open customizer.
        }
);
  1. Open Appearance -> Customize.
Notice:  Trying to get property 'title' of non-object in *****\wp-includes\class-wp-customize-nav-menus.php on line 523

Screenshots, screen recording, code snippet

https://user-images.githubusercontent.com/3272660/154138421-d8ffeafa-711a-43f6-aed1-b1a1126a3278.mov

Environment info

  • ( WordPress 5.9 and WordPress 5.9 with Gutenberg 12.5.4 ) and Twenty Twenty-Two 1.0
  • Chrome
  • Mac OS 11.6

Change History (2)

#1 @SergeyBiryukov
2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #54905.

#2 @kurudrive
2 years ago

@SergeyBiryukov 

Oh... sorry about scarce of search.

Thank you.

Note: See TracTickets for help on using tickets.