Editor: hide the Move to Trash link for auto-drafts until they are auto-saved.
Props iseulde. Fixes #16116. Built from https://develop.svn.wordpress.org/trunk@36972 git-svn-id: http://core.svn.wordpress.org/trunk@36940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
91d2354e7c
commit
70ac7ab943
|
@ -134,6 +134,10 @@ input#link_url {
|
|||
padding: 1px 2px;
|
||||
}
|
||||
|
||||
body.post-new-php .submitbox .submitdelete {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* @todo: do we really need this? word on the street is we don't and this
|
||||
stray rule may actually be compensated for elsewhere. */
|
||||
#normal-sortables .submitbox .submitdelete:hover {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -134,6 +134,10 @@ input#link_url {
|
|||
padding: 1px 2px;
|
||||
}
|
||||
|
||||
body.post-new-php .submitbox .submitdelete {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* @todo: do we really need this? word on the street is we don't and this
|
||||
stray rule may actually be compensated for elsewhere. */
|
||||
#normal-sortables .submitbox .submitdelete:hover {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -374,6 +374,10 @@ jQuery(document).ready( function($) {
|
|||
$( '.autosave-message' ).text( postL10n.savingText );
|
||||
}).on( 'after-autosave.edit-post', function( event, data ) {
|
||||
$( '.autosave-message' ).text( data.message );
|
||||
|
||||
if ( $( document.body ).hasClass( 'post-new-php' ) ) {
|
||||
$( '.submitbox .submitdelete' ).show();
|
||||
}
|
||||
});
|
||||
|
||||
$(window).on( 'beforeunload.edit-post', function() {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-beta3-36971';
|
||||
$wp_version = '4.5-beta3-36972';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue