Fix showing and hiding of UI elements when disabling the Post Formats UI, props kovshenin, see #24327
git-svn-id: http://core.svn.wordpress.org/trunk@24264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -210,7 +210,12 @@ window.wp = window.wp || {};
|
||||
}
|
||||
|
||||
$( '#show_post_format_ui' ).on( 'change', function () {
|
||||
$( '.wp-post-format-ui' ).toggleClass( 'no-ui', ! this.checked );
|
||||
body.toggleClass( 'wp-post-format-show-ui', this.checked );
|
||||
|
||||
// Reset the display properties of possibly hidden items.
|
||||
insertMediaButton.css( 'display', '' );
|
||||
$( '#titlewrap' ).css( 'display', '' );
|
||||
|
||||
$.post( ajaxurl, {
|
||||
action: 'show-post-format-ui',
|
||||
post_type: $( '#post_type' ).val(),
|
||||
|
||||
Reference in New Issue
Block a user