[wp-trac] [WordPress Trac] #55171: PHP Notice occur in customize screen in case of Block Theme

WordPress Trac noreply at wordpress.org
Tue Feb 15 20:08:17 UTC 2022


#55171: PHP Notice occur in customize screen in case of Block Theme
--------------------------+-----------------------------
 Reporter:  kurudrive     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 == 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
 <?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.
         }
 );
 }}}


 4. 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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55171>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list