Make Password protected and private mutually exclusive when using Quick Edit.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1422,7 +1422,7 @@ function wp_insert_post($postarr = array(), $wp_error = false) {
|
||||
else
|
||||
$menu_order = 0;
|
||||
|
||||
if ( !isset($post_password) )
|
||||
if ( !isset($post_password) || 'private' == $post_status )
|
||||
$post_password = '';
|
||||
|
||||
if ( !in_array( $post_status, array( 'draft', 'pending' ) ) ) {
|
||||
|
||||
@@ -250,7 +250,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20080625' );
|
||||
|
||||
$scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081129' );
|
||||
$scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081206' );
|
||||
$scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
|
||||
'error' => __('Error while saving the changes.'),
|
||||
'ntdeltitle' => __('Remove From Bulk Edit'),
|
||||
|
||||
Reference in New Issue
Block a user