Ticket #28979: 28979.DEMO.diff
| File 28979.DEMO.diff, 3.4 KB (added by , 12 years ago) |
|---|
-
src/wp-admin/css/customize-controls.css
88 88 border-bottom: 1px solid #eeeeee; 89 89 } 90 90 91 #customize-info .accordion-section-title:after, 92 #customize-controls .accordion-section-title:after { 93 content: "\f347"; 94 } 95 96 #customize-info.open .accordion-section-title:after, 97 #customize-controls .open .accordion-section-title:after { 98 content: "\f343"; 99 } 100 91 101 #customize-theme-controls .accordion-section-content { 92 102 color: #555555; 93 103 background: white; … … 137 147 margin: 0; 138 148 } 139 149 140 .control-section.control-panel > .accordion-section-title:after {141 content: "\f 139";150 #customize-theme-controls .control-section.control-panel > .accordion-section-title:after { 151 content: "\f345"; 142 152 } 143 153 144 .rtl .control-section.control-panel > .accordion-section-title:after {145 content: "\f 141";154 .rtl #customize-theme-controls .control-section.control-panel > .accordion-section-title:after { 155 content: "\f341"; 146 156 } 147 157 148 158 .accordion-sub-container.control-panel-content { -
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
45 45 public $widgets; 46 46 47 47 protected $settings = array(); 48 protected $containers = array(); 48 49 protected $panels = array(); 49 50 protected $sections = array(); 50 51 protected $controls = array(); … … 329 330 } 330 331 331 332 /** 333 * Get the registered containers. 334 * 335 * @since 4.0.0 336 * @access public 337 * 338 * @return array Sorted panels and top-level sections. 339 */ 340 public function containers() { 341 return $this->containers; 342 } 343 344 /** 332 345 * Checks if the current theme is active. 333 346 * 334 347 * @since 3.4.0 … … 891 904 $panels[] = $panel; 892 905 } 893 906 $this->panels = $panels; 907 908 // Sort panels and top-level sections together. 909 $this->containers = array_merge( $this->panels, $this->sections ); 910 uasort( $this->containers, array( $this, '_cmp_priority' ) ); 894 911 } 895 912 896 913 /** -
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' => 30, 439 440 ) ); 440 441 441 442 foreach ( $sidebars_widgets as $sidebar_id => $sidebar_widget_ids ) {