[wp-trac] [WordPress Trac] #41252: Customize: WP_Customize_Manager::save_changeset_post() can fail if get_changeset_post_data method returns WP_Error

WordPress Trac noreply at wordpress.org
Thu Jul 6 07:04:14 UTC 2017


#41252: Customize: WP_Customize_Manager::save_changeset_post() can fail if
get_changeset_post_data method returns WP_Error
---------------------------------------------+--------------------------
 Reporter:  westonruter                      |       Owner:  westonruter
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  4.9
Component:  Customize                        |     Version:  4.7
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+--------------------------
Changes (by westonruter):

 * owner:   => westonruter
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41012"]:
 {{{
 #!CommitTicketReference repository="" revision="41012"
 Customize: Prevent edge case fatal error when attempting to save changes
 to a changeset that had previously been corrupted.

 Check return value of `WP_Customize_Manager::get_changeset_post_data()`
 and return if error instead of assuming it is an array.

 Amends [38810].
 See #30937.
 Fixes #41252.
 }}}

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


More information about the wp-trac mailing list