[wp-trac] [WordPress Trac] #35486: Pass `$post` to `post_password_required()` in `get_the_excerpt()`

WordPress Trac noreply at wordpress.org
Sat Jan 16 10:13:29 UTC 2016


#35486: Pass `$post` to `post_password_required()` in `get_the_excerpt()`
--------------------------------------+-------------------------
 Reporter:  sebastian.pisula          |       Owner:  swissspidy
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.5
Component:  Posts, Post Types         |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-------------------------
Changes (by swissspidy):

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


Comment:

 In [changeset:"36329"]:
 {{{
 #!CommitTicketReference repository="" revision="36329"
 Posts: Correctly pass `$post` to `post_password_required()` in
 `get_the_excerpt()`.

 Corrects the relevant test.

 Props sebastian.pisula for initial patch.
 Fixes #35486.
 }}}

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


More information about the wp-trac mailing list