Opened 12 months ago
Last modified 8 months ago
#63729 new enhancement
Fix misleading summary in PHPDoc for wp_insert_post()
| Reported by: | rutujaparamane2004 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Posts, Post Types | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs |
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 (10)
This ticket was mentioned in PR #9288 on WordPress/wordpress-develop by @vladimiraus.
12 months ago
#3
Added examples for wp_insert_post and fixed minor typos.
#5
in reply to: ↑ 1
@
12 months ago
- Keywords needs-testing removed
- Version 6.5
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].
This ticket was mentioned in PR #9286 on WordPress/wordpress-develop by @rutujaparamane2004.
8 months ago
#9
@SergeyBiryukov commented on PR #9286:
8 months ago
#10
Thanks for the PR! Merged in r61275.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi and welcome Rutuja. May I ask, where do we find your patch?