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:
Andrew Ozz 2016-03-12 17:22:26 +00:00
parent 91d2354e7c
commit 70ac7ab943
7 changed files with 16 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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.