mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 11:35:48 +00:00
Customize: Disable theme installation in multisite.
Props celloexpressions, iamfriendly. Fixes #38370. Built from https://develop.svn.wordpress.org/trunk@38887 git-svn-id: http://core.svn.wordpress.org/trunk@38830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5452a6a21d
commit
d93636bd11
@ -3026,54 +3026,56 @@ final class WP_Customize_Manager {
|
||||
'priority' => 0,
|
||||
) ) );
|
||||
|
||||
$this->add_section( new WP_Customize_Themes_Section( $this, 'search_themes', array(
|
||||
'title' => __( 'Search themes…' ),
|
||||
'text_before' => __( 'Browse all WordPress.org themes' ),
|
||||
'action' => 'search',
|
||||
'capability' => 'install_themes',
|
||||
'panel' => 'themes',
|
||||
'priority' => 5,
|
||||
) ) );
|
||||
if ( ! is_multisite() ) {
|
||||
$this->add_section( new WP_Customize_Themes_Section( $this, 'search_themes', array(
|
||||
'title' => __( 'Search themes…' ),
|
||||
'text_before' => __( 'Browse all WordPress.org themes' ),
|
||||
'action' => 'search',
|
||||
'capability' => 'install_themes',
|
||||
'panel' => 'themes',
|
||||
'priority' => 5,
|
||||
) ) );
|
||||
|
||||
$this->add_section( new WP_Customize_Themes_Section( $this, 'featured_themes', array(
|
||||
'title' => __( 'Featured' ),
|
||||
'action' => 'featured',
|
||||
'capability' => 'install_themes',
|
||||
'panel' => 'themes',
|
||||
'priority' => 10,
|
||||
) ) );
|
||||
$this->add_section( new WP_Customize_Themes_Section( $this, 'featured_themes', array(
|
||||
'title' => __( 'Featured' ),
|
||||
'action' => 'featured',
|
||||
'capability' => 'install_themes',
|
||||
'panel' => 'themes',
|
||||
'priority' => 10,
|
||||
) ) );
|
||||
|
||||
$this->add_section( new WP_Customize_Themes_Section( $this, 'popular_themes', array(
|
||||
'title' => __( 'Popular' ),
|
||||
'action' => 'popular',
|
||||
'capability' => 'install_themes',
|
||||
'panel' => 'themes',
|
||||
'priority' => 15,
|
||||
) ) );
|
||||
$this->add_section( new WP_Customize_Themes_Section( $this, 'popular_themes', array(
|
||||
'title' => __( 'Popular' ),
|
||||
'action' => 'popular',
|
||||
'capability' => 'install_themes',
|
||||
'panel' => 'themes',
|
||||
'priority' => 15,
|
||||
) ) );
|
||||
|
||||
$this->add_section( new WP_Customize_Themes_Section( $this, 'latest_themes', array(
|
||||
'title' => __( 'Latest' ),
|
||||
'action' => 'latest',
|
||||
'capability' => 'install_themes',
|
||||
'panel' => 'themes',
|
||||
'priority' => 20,
|
||||
) ) );
|
||||
$this->add_section( new WP_Customize_Themes_Section( $this, 'latest_themes', array(
|
||||
'title' => __( 'Latest' ),
|
||||
'action' => 'latest',
|
||||
'capability' => 'install_themes',
|
||||
'panel' => 'themes',
|
||||
'priority' => 20,
|
||||
) ) );
|
||||
|
||||
$this->add_section( new WP_Customize_Themes_Section( $this, 'feature_filter_themes', array(
|
||||
'title' => __( 'Feature Filter' ),
|
||||
'action' => 'feature_filter',
|
||||
'capability' => 'install_themes',
|
||||
'panel' => 'themes',
|
||||
'priority' => 25,
|
||||
) ) );
|
||||
$this->add_section( new WP_Customize_Themes_Section( $this, 'feature_filter_themes', array(
|
||||
'title' => __( 'Feature Filter' ),
|
||||
'action' => 'feature_filter',
|
||||
'capability' => 'install_themes',
|
||||
'panel' => 'themes',
|
||||
'priority' => 25,
|
||||
) ) );
|
||||
|
||||
$this->add_section( new WP_Customize_Themes_Section( $this, 'favorites_themes', array(
|
||||
'title' => __( 'Favorites' ),
|
||||
'action' => 'favorites',
|
||||
'capability' => 'install_themes',
|
||||
'panel' => 'themes',
|
||||
'priority' => 30,
|
||||
) ) );
|
||||
$this->add_section( new WP_Customize_Themes_Section( $this, 'favorites_themes', array(
|
||||
'title' => __( 'Favorites' ),
|
||||
'action' => 'favorites',
|
||||
'capability' => 'install_themes',
|
||||
'panel' => 'themes',
|
||||
'priority' => 30,
|
||||
) ) );
|
||||
}
|
||||
|
||||
// Themes Setting (unused - the theme is considerably more fundamental to the Customizer experience).
|
||||
$this->add_setting( new WP_Customize_Filter_Setting( $this, 'active_theme', array(
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-alpha-38886';
|
||||
$wp_version = '4.7-alpha-38887';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user