[wp-trac] [WordPress Trac] #17115: Publishing an empty post results in success
WordPress Trac
noreply at wordpress.org
Sat Nov 17 00:15:31 UTC 2012
#17115: Publishing an empty post results in success
----------------------------+------------------------------
Reporter: kawauso | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.1
Severity: normal | Resolution:
Keywords: needs-patch |
----------------------------+------------------------------
Changes (by trepmal):
* cc: trepmal@… (added)
* keywords: has-patch => needs-patch
Comment:
Two primary issues I see with the JS method:
1. Prematurely enables the update button if a non-crucial (title, content,
excerpt) element is changed. For example, custom fields. (Mentioned in my
dupe ticket #22483)
2. Doesn't enable the button if only a featured image is added
I suspect there are also accessibility issues with a button that can only
be used after being enabled (undisabled?) via javascript - but that is far
from any area of expertise I may have.
The root of the problem seems to come from !WordPress not allowing new
posts without a title, content, and excerpt
(http://core.trac.wordpress.org/browser/trunk/wp-includes/post.php#L2701).
While it may be correct for !WordPress to not allow ''publishing'' a post
without title/content, I think draft posts still need to be allowed.
Someone may very well want to first upload and nice featured image and
preview the post before adding anything else, and they cannot currently do
so.
I'm not sure of the best way to go about patching this, but I'm going to
tinker around and see what I can put together that makes any kind of sense
to the user.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17115#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list