Opened 9 years ago
Closed 9 years ago
#35486 closed defect (bug) (fixed)
Pass `$post` to `post_password_required()` in `get_the_excerpt()`
Reported by: | sebastian.pisula | Owned by: | swissspidy |
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description
Two fix in get_the_excerpt function:
- in docs param $post can be int|WP_Post and null
- post_password_required function should have $post param
Attachments (2)
Change History (5)
#1
@
9 years ago
- Component changed from General to Posts, Post Types
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 4.5
Note: See
TracTickets for help on using
tickets.
int|WP_Post|null
is used like two or three times throughout the code base, whereasint|WP_Post
is used everywhere else.null
is the default value and IMHO already covered byint|WP_Post
.The
post_password_required()
part is a bad oversight though.