mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-25 17:51:27 +01:00
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;
|
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
|
/* @todo: do we really need this? word on the street is we don't and this
|
||||||
stray rule may actually be compensated for elsewhere. */
|
stray rule may actually be compensated for elsewhere. */
|
||||||
#normal-sortables .submitbox .submitdelete:hover {
|
#normal-sortables .submitbox .submitdelete:hover {
|
||||||
|
2
wp-admin/css/edit-rtl.min.css
vendored
2
wp-admin/css/edit-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -134,6 +134,10 @@ input#link_url {
|
|||||||
padding: 1px 2px;
|
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
|
/* @todo: do we really need this? word on the street is we don't and this
|
||||||
stray rule may actually be compensated for elsewhere. */
|
stray rule may actually be compensated for elsewhere. */
|
||||||
#normal-sortables .submitbox .submitdelete:hover {
|
#normal-sortables .submitbox .submitdelete:hover {
|
||||||
|
2
wp-admin/css/edit.min.css
vendored
2
wp-admin/css/edit.min.css
vendored
File diff suppressed because one or more lines are too long
@ -374,6 +374,10 @@ jQuery(document).ready( function($) {
|
|||||||
$( '.autosave-message' ).text( postL10n.savingText );
|
$( '.autosave-message' ).text( postL10n.savingText );
|
||||||
}).on( 'after-autosave.edit-post', function( event, data ) {
|
}).on( 'after-autosave.edit-post', function( event, data ) {
|
||||||
$( '.autosave-message' ).text( data.message );
|
$( '.autosave-message' ).text( data.message );
|
||||||
|
|
||||||
|
if ( $( document.body ).hasClass( 'post-new-php' ) ) {
|
||||||
|
$( '.submitbox .submitdelete' ).show();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(window).on( 'beforeunload.edit-post', function() {
|
$(window).on( 'beforeunload.edit-post', function() {
|
||||||
|
2
wp-admin/js/post.min.js
vendored
2
wp-admin/js/post.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user