[wp-trac] [WordPress Trac] #31760: Undefined index: post_status when previewing post.

WordPress Trac noreply at wordpress.org
Thu Mar 26 01:44:05 UTC 2015


#31760: Undefined index: post_status when previewing post.
-------------------------------+---------------------------
 Reporter:  szaqal21           |       Owner:  boonebgorges
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  4.2
Component:  Posts, Post Types  |     Version:  4.1.1
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:
-------------------------------+---------------------------
Changes (by boonebgorges):

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


Comment:

 In [changeset:"31896"]:
 {{{
 #!CommitTicketReference repository="" revision="31896"
 Check that `$_POST` array index is set before comparing it in
 `post_preview()`.

 This prevents PHP notices in cases where a user with 'edit_others_posts'
 but
 without 'publish_posts' previews another user's posts.

 Props tyxla.
 Fixes #31760.
 }}}

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


More information about the wp-trac mailing list