[wp-trac] [WordPress Trac] #54682: PHP Notice when adding 'custom_header' support to block theme

WordPress Trac noreply at wordpress.org
Sat Dec 25 03:30:42 UTC 2021


#54682: PHP Notice when adding 'custom_header' support to block theme
--------------------------+-----------------------------
 Reporter:  afragen       |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.9
Component:  Themes        |     Version:  trunk
 Severity:  major         |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  administration
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52415" 52415]:
 {{{
 #!CommitTicketReference repository="" revision="52415"
 Administration: Make sure the `$customize_url` variable is always defined
 in the admin menu.

 This avoids an `Undefined variable` PHP warning when displaying other
 admin menu items.

 Follow-up to [52069], [52134], [52158], [52178], [52414].

 Props afragen.
 Fixes #54682.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54682#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list