Ticket #28979: 28979.4.diff
File 28979.4.diff, 2.9 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/customize-controls.css
132 132 } 133 133 134 134 #customize-theme-controls .control-section:last-of-type.open, 135 #customize-theme-controls .control-section:last-of-type .accordion-section-title {135 #customize-theme-controls .control-section:last-of-type > .accordion-section-title { 136 136 border-bottom-color: #ddd; 137 137 } 138 138 -
src/wp-admin/customize.php
161 161 162 162 <div id="customize-theme-controls"><ul> 163 163 <?php 164 foreach ( $wp_customize-> panels() as $panel) {165 $ panel->maybe_render();164 foreach ( $wp_customize->containers() as $container ) { 165 $container->maybe_render(); 166 166 } 167 foreach ( $wp_customize->sections() as $section ) {168 $section->maybe_render();169 }170 167 ?> 171 168 </ul></div> 172 169 </div> -
src/wp-includes/class-wp-customize-manager.php
43 43 */ 44 44 public $widgets; 45 45 46 protected $settings = array(); 47 protected $panels = array(); 48 protected $sections = array(); 49 protected $controls = array(); 46 protected $settings = array(); 47 protected $containers = array(); 48 protected $panels = array(); 49 protected $sections = array(); 50 protected $controls = array(); 50 51 51 52 protected $nonce_tick; 52 53 … … 305 306 } 306 307 307 308 /** 309 * Get the registered containers. 310 * 311 * @since 4.0.0 312 * 313 * @return array 314 */ 315 public function containers() { 316 return $this->containers; 317 } 318 319 /** 308 320 * Get the registered sections. 309 321 * 310 322 * @since 3.4.0 … … 890 902 $panels[] = $panel; 891 903 } 892 904 $this->panels = $panels; 905 906 // Sort panels and top-level sections together. 907 $this->containers = array_merge( $this->panels, $this->sections ); 908 uasort( $this->containers, array( $this, '_cmp_priority' ) ); 893 909 } 894 910 895 911 /** -
src/wp-includes/class-wp-customize-widgets.php
434 434 } 435 435 436 436 $this->manager->add_panel( 'widgets', array( 437 'title' => __( 'Widgets' ),437 'title' => __( 'Widgets' ), 438 438 'description' => __( 'Widgets are independent sections of content that can be placed into widgetized areas provided by your theme (commonly called sidebars).' ), 439 'priority' => 110, 439 440 ) ); 440 441 441 442 foreach ( $sidebars_widgets as $sidebar_id => $sidebar_widget_ids ) {