- Timestamp:
- 09/13/2015 06:15:42 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/customize.php
r33857 r34093 146 146 <div class="wp-full-overlay-sidebar-content" tabindex="-1"> 147 147 <div id="customize-info" class="accordion-section customize-info"> 148 <div class="accordion-section-title" aria-label="<?php esc_attr_e( 'Customizer Options' ); ?>">148 <div class="accordion-section-title"> 149 149 <span class="preview-notice"><?php 150 150 echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name' ) . '</strong>' ); -
trunk/src/wp-admin/includes/screen.php
r33985 r34093 1100 1100 * @since 3.3.0 1101 1101 * 1102 * @param array $options { 1103 * @type bool $wrap Whether the screen-options-wrap div will be included. Defaults to true. 1104 * } 1102 1105 * @global array $wp_meta_boxes 1103 1106 */ 1104 public function render_screen_options( ) {1107 public function render_screen_options( $options = array() ) { 1105 1108 global $wp_meta_boxes; 1109 $options = wp_parse_args( $options, array( 1110 'wrap' => true, 1111 ) ); 1106 1112 1107 1113 $columns = get_column_headers( $this ); … … 1109 1115 1110 1116 ?> 1111 <div id="screen-options-wrap" class="hidden" tabindex="-1" aria-label="<?php esc_attr_e('Screen Options Tab'); ?>"> 1117 <?php if ( $options['wrap'] ) : ?> 1118 <div id="screen-options-wrap" class="hidden" tabindex="-1" aria-label="<?php esc_attr_e('Screen Options Tab'); ?>"> 1119 <?php endif; ?> 1112 1120 <form id="adv-settings" method="post"> 1113 1121 <?php if ( isset( $wp_meta_boxes[ $this->id ] ) || $this->get_option( 'per_page' ) || ( $columns && empty( $columns['_title'] ) ) ) : ?> … … 1172 1180 <div><?php wp_nonce_field( 'screen-options-nonce', 'screenoptionnonce', false ); ?></div> 1173 1181 </form> 1174 </div> 1175 <?php 1182 <?php if ( $options['wrap'] ) : ?> 1183 </div> 1184 <?php endif; 1176 1185 } 1177 1186 -
trunk/src/wp-includes/class-wp-customize-panel.php
r33505 r34093 417 417 // Display screen options. 418 418 $screen = WP_Screen::get( 'nav-menus.php' ); 419 $screen->render_screen_options( );419 $screen->render_screen_options( array( 'wrap' => false ) ); 420 420 } 421 421 … … 476 476 <div class="description customize-panel-description">{{{ data.description }}}</div> 477 477 <# } #> 478 <?php $this->render_screen_options(); ?> 478 <div id="screen-options-wrap"> 479 <?php $this->render_screen_options(); ?> 480 </div> 479 481 </li> 480 482 <?php
Note: See TracChangeset
for help on using the changeset viewer.