Opened 10 months ago
Closed 7 months ago
#21607 closed defect (bug) (fixed)
post_exists returns 0 and null
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | General | Version: | 3.4.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
The function post_exists, located in wp-admin/includes/post.php, returns 0 if the arguments are empty but returns null if the query has no result. Because of this the output of the function can't be strictly checked (===).
Changed the 0 return to null.
Attachments (1)
Change History (3)
barrykooij
— 10 months ago
comment:1
markoheijnen
— 10 months ago
- Milestone changed from Awaiting Review to 3.5
See also: #21606
Note: See
TracTickets for help on using
tickets.
post.php patch