Changeset 29488
- Timestamp:
- 08/14/2014 04:42:30 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/customize-controls.css
r29470 r29488 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 } -
trunk/src/wp-admin/customize.php
r29206 r29488 162 162 <div id="customize-theme-controls"><ul> 163 163 <?php 164 foreach ( $wp_customize->panels() as $panel ) { 165 $panel->maybe_render(); 166 } 167 foreach ( $wp_customize->sections() as $section ) { 168 $section->maybe_render(); 164 foreach ( $wp_customize->containers() as $container ) { 165 $container->maybe_render(); 169 166 } 170 167 ?> -
trunk/src/wp-includes/class-wp-customize-manager.php
r29487 r29488 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; … … 304 305 public function controls() { 305 306 return $this->controls; 307 } 308 309 /** 310 * Get the registered containers. 311 * 312 * @since 4.0.0 313 * 314 * @return array 315 */ 316 public function containers() { 317 return $this->containers; 306 318 } 307 319 … … 892 904 } 893 905 $this->panels = $panels; 906 907 // Sort panels and top-level sections together. 908 $this->containers = array_merge( $this->panels, $this->sections ); 909 uasort( $this->containers, array( $this, '_cmp_priority' ) ); 894 910 } 895 911 -
trunk/src/wp-includes/class-wp-customize-widgets.php
r29377 r29488 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
Note: See TracChangeset
for help on using the changeset viewer.