mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Appearance Themes: Don't show theme actions if the current theme doesn't support menus or widgets.
props MikeHansenMe. fixes #25949. git-svn-id: https://develop.svn.wordpress.org/trunk@26335 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -293,8 +293,12 @@ if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_
|
||||
<div class="theme-actions">
|
||||
<div class="active-theme">
|
||||
<a href="{{{ wp.themes.data.settings.customizeURI }}}" class="button button-primary hide-if-no-customize"><?php _e( 'Customize' ); ?></a>
|
||||
<?php if( current_theme_supports( 'menus' ) ) { ?>
|
||||
<a class="button button-secondary" href="<?php echo admin_url( 'nav-menus.php' ); ?>"><?php _e( 'Menus' ); ?></a>
|
||||
<?php } ?>
|
||||
<?php if( current_theme_supports( 'widgets' ) ) { ?>
|
||||
<a class="button button-secondary" href="<?php echo admin_url( 'widgets.php' ); ?>"><?php _e( 'Widgets' ); ?></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="inactive-theme">
|
||||
<a href="{{{ data.actions.activate }}}" class="button button-primary"><?php _e( 'Activate' ); ?></a>
|
||||
|
||||
Reference in New Issue
Block a user