Changeset 34093 for trunk/src/wp-admin/includes/screen.php
- Timestamp:
- 09/13/2015 06:15:42 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.