| | 890 | // If there is only one section in the panel, don't display the panel. |
| | 891 | // Display the section in the top level instead, and re-sort. |
| | 892 | if ( 1 === count( $panel->sections ) ) { |
| | 893 | $section = $panel->sections[0]; |
| | 894 | // Add the panel title to the section title for context. |
| | 895 | $title = $panel->title . _x( ': ', 'Customizer panel-title: section-title separator when panel is displayed as the single section that it contains.' ) . $section->title; |
| | 896 | $section->title = $title; |
| | 897 | $this->sections[] = $section; |
| | 898 | usort( $this->sections, array( $this, '_cmp_priority' ) ); |
| | 899 | continue; |
| | 900 | } |
| | 901 | |