[wp-trac] [WordPress Trac] #17115: Publishing an empty post results in success

WordPress Trac noreply at wordpress.org
Mon Apr 4 21:38:44 UTC 2016


#17115: Publishing an empty post results in success
------------------------------------+------------------------------
 Reporter:  kawauso                 |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Posts, Post Types       |     Version:  3.1
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  administration
------------------------------------+------------------------------

Comment (by GhostToast):

 To me this seems to be issue of the logic for how `$maybe_empty` is
 decided. If the post type in question doesn't support `excerpt` this
 doesn't fall down. My test is in trying to save taxonomy terms. If the
 title and content are empty, `excerpt` support is enabled, taxonomy terms
 don't save, despite a "Draft saved" message.

 However if `excerpt` support is not enabled, `$maybe_empty` is false, and
 the post ''will'' save the terms.

 Probably this should be failing on post types without `excerpt` support
 but the conditional is too long to bother considering whether a post has
 an Excerpt and whether it has support for one, so doesn't consider an
 empty Page, empty, for example.

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


More information about the wp-trac mailing list