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

WordPress Trac noreply at wordpress.org
Tue Jan 27 00:34:42 UTC 2015


#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          |     Focuses:  administration
-------------------------------+------------------------------

Comment (by adamsilverstein):

 In [attachment:17115.2.diff]:
  * expand or @ericmann's patch, refresh against trunk - php warning useful
 if no-js
  * adds js side check before submitting form - if title, content and
 excerpt empty bail, don't submit

 JS side check should prevent most empty submissions so maybe php warning
 not needed? also it seems wrong that the warning comes with a green color
 bar seeming to indicate success, it should really be a failure **notice**.
 De we want JS side notification, do we do that anywhere currently?

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


More information about the wp-trac mailing list