Opened 10 years ago
Closed 10 years ago
#35486 closed defect (bug) (fixed)
Pass `$post` to `post_password_required()` in `get_the_excerpt()`
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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
@
10 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|nullis used like two or three times throughout the code base, whereasint|WP_Postis used everywhere else.nullis the default value and IMHO already covered byint|WP_Post.The
post_password_required()part is a bad oversight though.