Consistently show "Customize" item in the admin menu. props ethitter. fixes #21413.

git-svn-id: http://core.svn.wordpress.org/trunk@23879 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2013-03-29 23:25:06 +00:00
parent ea4acee9f9
commit 4a03b8dd61

View File

@ -98,9 +98,8 @@ $admin_body_class .= ' no-customize-support';
</script>
<?php
// If the customize-loader script is enqueued, make sure the customize
// body classes are correct as early as possible.
if ( wp_script_is( 'customize-loader', 'queue' ) && current_user_can( 'edit_theme_options' ) )
// Make sure the customize body classes are correct as early as possible.
if ( current_user_can( 'edit_theme_options' ) )
wp_customize_support_script();
?>