[wp-trac] [WordPress Trac] #63729: Fix misleading summary in PHPDoc for wp_insert_post()

WordPress Trac noreply at wordpress.org
Sun Jul 20 15:23:10 UTC 2025


#63729: Fix misleading summary in PHPDoc for wp_insert_post()
--------------------------------+-----------------------------
 Reporter:  rutujaparamane2004  |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Posts, Post Types   |    Version:  6.5
 Severity:  normal              |   Keywords:  has-patch
  Focuses:  docs                |
--------------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63729>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list