[wp-trac] [WordPress Trac] #27020: Use a safer capability default when post_author == 0
WordPress Trac
noreply at wordpress.org
Tue Mar 4 03:08:56 UTC 2014
#27020: Use a safer capability default when post_author == 0
------------------------------------+---------------------
Reporter: danielbachhuber | Owner: nacin
Type: enhancement | Status: closed
Priority: normal | Milestone: 3.9
Component: Role/Capability | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+---------------------
Changes (by nacin):
* owner: => nacin
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"27390"]:
{{{
#!CommitTicketReference repository="" revision="27390"
Don't default to current user for capability checks when dealing with a
post without an author (post_author = 0).
Undoes [12053]. While it risks breakage, this is a far safer and saner
default for these situations.
props danielbachhuber.
fixes #27020.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27020#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list