[wp-trac] [WordPress Trac] #37441: get_default_post_to_edit() function is broken

WordPress Trac noreply at wordpress.org
Sun Aug 31 19:34:47 UTC 2025


#37441: get_default_post_to_edit() function is broken
-------------------------------------------------+-------------------------
 Reporter:  tfrommen                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Posts, Post Types                    |     Version:  5.6
 Severity:  normal                               |  Resolution:
 Keywords:  has-test-info good-first-bug has-    |     Focuses:
  patch                                          |  administration
-------------------------------------------------+-------------------------

Comment (by siliconforks):

 [https://github.com/WordPress/wordpress-develop/pull/9681 PR #9681] is not
 really what I had in mind for addressing this issue.  I was thinking it
 would be best to do what was described in
 [https://core.trac.wordpress.org/ticket/37441#comment:3 this comment] -
 i.e., try to set the second argument to `wp_insert_post()` to `true` in
 order to (hopefully) get a meaningful error message.  (Then you could just
 call `wp_die()` with that error message.)

 [https://github.com/WordPress/wordpress-develop/pull/9681 PR #9681] seems
 like it is just hiding the problem rather than trying to report it to the
 user.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/37441#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list