[wp-trac] [WordPress Trac] #33118: Don't assume the $post is an array in sanitize_post().

WordPress Trac noreply at wordpress.org
Sat Sep 12 15:37:52 UTC 2015


#33118: Don't assume the $post is an array in sanitize_post().
-------------------------------+-----------------------------
 Reporter:  morganestes        |       Owner:  wonderboymusic
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  4.4
Component:  Posts, Post Types  |     Version:  2.5
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:
-------------------------------+-----------------------------
Changes (by wonderboymusic):

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


Comment:

 In [changeset:"34080"]:
 {{{
 #!CommitTicketReference repository="" revision="34080"
 `sanitize_post()` is polymorphic, add an `is_array()` check for `$post`
 before operating on it as an array.

 Props morganestes.
 Fixes #33118.
 }}}

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


More information about the wp-trac mailing list