[wp-trac] [WordPress Trac] #11401: checks against array('draft', 'pending') should be changed
WordPress Trac
wp-trac at lists.automattic.com
Fri Dec 11 20:34:16 UTC 2009
#11401: checks against array('draft', 'pending') should be changed
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: Trash | Version: 2.9
Severity: normal | Keywords:
-------------------------------+--------------------------------------------
Comment(by Denis-de-Bernardy):
continuing scans... post.dev.js has:
{{{
if ( $('option:selected', postStatus).val() ==
'private' || $('option:selected', postStatus).val() == 'publish' ) {
$('#save-post').hide();
} else {
$('#save-post').show();
if ( $('option:selected',
postStatus).val() == 'pending' ) {
$('#save-post').show().val(
postL10n.savePending );
} else {
$('#save-post').show().val(
postL10n.saveDraft );
}
}
}}}
and:
{{{
if ( $('#original_post_status').val() ==
'future' || $('#original_post_status').val() == 'draft' ) {
if ( optPublish.length ) {
optPublish.remove();
postStatus.val($('#hidden_post_status').val());
}
}}}
I'm supposing that most of these are covered indirectly, but it would be
good to ultimately harden these checks as needed.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11401#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list