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

git-svn-id: https://develop.svn.wordpress.org/trunk@23879 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-03-29 23:25:06 +00:00
parent f25bae2168
commit d26bddce5c

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();
?>