Ticket #28979: 28979.diff
File 28979.diff, 2.2 KB (added by , 9 years ago) |
---|
-
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
44 44 public $widgets; 45 45 46 46 protected $settings = array(); 47 protected $containers = array(); 47 48 protected $panels = array(); 48 49 protected $sections = array(); 49 50 protected $controls = array(); … … 328 329 } 329 330 330 331 /** 332 * Get the registered containers. 333 * 334 * @since 4.0.0 335 * @access public 336 * 337 * @return array Sorted panels and top-level sections. 338 */ 339 public function containers() { 340 return $this->containers; 341 } 342 343 /** 331 344 * Checks if the current theme is active. 332 345 * 333 346 * @since 3.4.0 … … 890 903 $panels[] = $panel; 891 904 } 892 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' ) ); 893 910 } 894 911 895 912 /** -
src/wp-includes/class-wp-customize-widgets.php
436 436 $this->manager->add_panel( 'widgets', array( 437 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' => 140, 439 440 ) ); 440 441 441 442 foreach ( $sidebars_widgets as $sidebar_id => $sidebar_widget_ids ) {