[wp-trac] [WordPress Trac] #57473: Unclear Documentation for wp_insert_post for post_modified property

WordPress Trac noreply at wordpress.org
Mon Jan 16 18:13:21 UTC 2023


#57473: Unclear Documentation for wp_insert_post for post_modified property
-------------------------------+-----------------------------
 Reporter:  dshanske           |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  low                |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:
 Severity:  trivial            |   Keywords:
  Focuses:  docs               |
-------------------------------+-----------------------------
 The documentation for wp_insert_post implies that post_modified and
 post_modified_gmt can be set using this, but it cannot if this is an
 update, only if it is a new post.

 Personally, I actually wanted to be able to have this not updated for
 minor edits, which is why I was looking at the code, but noticed the
 explanation is misleading.

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


More information about the wp-trac mailing list