[wp-trac] [WordPress Trac] #45484: starter content theme_mods/options throw php warning if not string

WordPress Trac noreply at wordpress.org
Tue Oct 15 16:42:02 UTC 2019


#45484: starter content theme_mods/options throw php warning if not string
-------------------------------------+-----------------------------
 Reporter:  timph                    |       Owner:  SergeyBiryukov
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  5.3
Component:  Customize                |     Version:  4.7
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"46548" 46548]:
 {{{
 #!CommitTicketReference repository="" revision="46548"
 Customize: Ensure that
 `WP_Customize_Manager::import_theme_starter_content()` properly handles
 starter content with (nested) arrays as values.

 Previously, searching for symbol references to replace with post or
 attachment IDs in array values resulted in a PHP warning.

 Props timph, JarretC, SergeyBiryukov.
 Fixes #45484.
 }}}

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


More information about the wp-trac mailing list