[wp-trac] [WordPress Trac] #8913: Post published message issue
WordPress Trac
wp-trac at lists.automattic.com
Wed Jan 21 20:21:49 GMT 2009
#8913: Post published message issue
--------------------------+-------------------------------------------------
Reporter: hailin | Owner: anonymous
Type: defect (bug) | Status: new
Priority: high | Milestone: 2.7.2
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
User reported that sometimes they hit publish on a new post. It takes for
a long
time, then says "post published." But in the "manage post" menu, it's
still
listed as a draft (often without categories we've added), and it doesn't
appear on the page.
Sometimes in the post itself, it says "post published" -- but on the
right side, where the time stamp is, it's listed as a "draft" at the
same time. If we refresh, sometimes the update option will go from
"update post" to "publish," as though we'd never published in the first
place.
I think the issue is inconsistency of message.
We have to account for the fact that write_post can fail, eg: db is busy,
timed out, etc. So before displaying "Post published" message in wp-
admin/sdiebar.php L98, we should make sure the post is indeed published.
This applies to other code paths as well. Eg, changing status, anything
involving db write, it's better to check for the result first before
informing users that operation was successful and status has changed.
--
Ticket URL: <http://trac.wordpress.org/ticket/8913>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list