[wp-trac] [WordPress Trac] #35486: Fix in get_the_excerpt

WordPress Trac noreply at wordpress.org
Sat Jan 16 10:04:46 UTC 2016


#35486: Fix in get_the_excerpt
-------------------------------+------------------
 Reporter:  sebastian.pisula   |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  4.5
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  needs-patch        |     Focuses:
-------------------------------+------------------
Changes (by swissspidy):

 * keywords:   => needs-patch
 * component:  General => Posts, Post Types
 * milestone:  Awaiting Review => 4.5


Comment:

 `int|WP_Post|null` is used like two or three times throughout the code
 base, whereas `int|WP_Post` is used everywhere else. `null` is the default
 value and IMHO already covered by `int|WP_Post`.

 The `post_password_required()` part is a bad oversight though.

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


More information about the wp-trac mailing list