Opened 4 months ago
Last modified 4 months ago
#63729 new enhancement
Fix misleading summary in PHPDoc for wp_insert_post()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Posts, Post Types | Keywords: | has-patch |
| Focuses: | docs | Cc: |
Description
This patch improves the inline documentation for the wp_insert_post() function by clarifying that it inserts or updates a post depending on the presence of an ID. Previously, the docblock implied it only inserts posts.
Change History (8)
This ticket was mentioned in PR #9288 on WordPress/wordpress-develop by @vladimiraus.
4 months ago
#3
Added examples for wp_insert_post and fixed minor typos.
#4
@
4 months ago
- Keywords needs-testing added
- Type changed from defect (bug) to enhancement
Added pull request.
#5
in reply to:
↑ 1
@
4 months ago
- Keywords needs-testing removed
- Version 6.5 deleted
Hi and welcome Rutuja. May I ask, where do we find your patch?
The pull request preceded the ticket: 9286
@rutujaparamane2004 If you add a link to the ticket in the pull request's first comment, the PR should connect to the ticket automatically.
Regarding the version, [53456] added the 's' to 'Inserts' for WordPress 6.1, but the rest of the function description goes back much earlier to [8669], [23311] and [25628].
Hi and welcome Rutuja. May I ask, where do we find your patch?