Ticket #31203: 31203.patch
| File 31203.patch, 1.4 KB (added by , 12 years ago) |
|---|
-
src/wp-includes/class-wp-customize-control.php
1243 1243 class WP_Customize_New_Theme_Control extends WP_Customize_Control { 1244 1244 1245 1245 /** 1246 * Render the new control.1246 * Render the control content. 1247 1247 * 1248 1248 * @since 4.2.0 1249 1249 */ 1250 public function render() { 1251 if ( is_multisite() || ! current_user_can( 'install_themes') ) { 1252 return; 1253 } 1250 public function render_content() { 1254 1251 ?> 1255 1252 <div class="theme add-new-theme"> 1256 1253 <a href="<?php echo admin_url( 'theme-install.php' ); ?>" target="_top"> -
src/wp-includes/class-wp-customize-manager.php
1171 1171 ) ) ); 1172 1172 } 1173 1173 1174 $this->add_control( new WP_Customize_New_Theme_Control( $this, 'add_theme', array( 1175 'section' => 'themes', 1176 'settings' => 'active_theme', 1177 ) ) ); 1174 if ( ! is_multisite() && current_user_can( 'install_themes' ) ) { 1175 $this->add_control( new WP_Customize_New_Theme_Control( $this, 'add_theme', array( 1176 'section' => 'themes', 1177 'settings' => 'active_theme', 1178 ) ) ); 1179 } 1178 1180 1179 1181 /* Site Title & Tagline */ 1180 1182
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)