Changeset 29280 for trunk/src/wp-admin/includes/screen.php
- Timestamp:
- 07/24/2014 05:25:28 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/screen.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/screen.php
r29079 r29280 1020 1020 <div id="screen-options-wrap" class="hidden" tabindex="-1" aria-label="<?php esc_attr_e('Screen Options Tab'); ?>"> 1021 1021 <form id="adv-settings" action="" method="post"> 1022 <?php if ( 1023 isset( $wp_meta_boxes[ $this->id ] ) 1024 || $this->get_option( 'per_page' ) 1025 || $this->get_option( 'misc_screen_options' ) 1026 || ( $columns && empty( $columns['_title'] ) ) 1027 ) : ?> 1022 <?php if ( isset( $wp_meta_boxes[ $this->id ] ) || $this->get_option( 'per_page' ) || ( $columns && empty( $columns['_title'] ) ) ) : ?> 1028 1023 <h5><?php _e( 'Show on screen' ); ?></h5> 1029 1024 <?php … … 1077 1072 <br class="clear" /> 1078 1073 </div> 1079 <?php elseif ( $this->get_option( 'misc_screen_options' ) ):1080 $misc_options = $this->get_option( 'misc_screen_options' );1081 ?>1082 <div class="metabox-prefs misc-screen-options" data-id="<?php echo esc_attr( $misc_options['id'] ) ?>">1083 <?php1084 1085 $option = get_user_option( $misc_options['option'] );1086 $hidden = array();1087 if ( ! empty( $option ) ) {1088 $hidden = $option;1089 }1090 foreach ( $this->_options as $column => $args ) {1091 if ( 'misc_screen_options' === $column ) {1092 continue;1093 }1094 $id = "$column-hide";1095 echo '<label for="' . $id . '">';1096 echo '<input class="hide-column-tog" name="' . $id . '" type="checkbox" id="' . $id . '" value="' . $column . '"' . checked( ! in_array( $column, $hidden ), true, false ) . ' />';1097 echo $args['label'] . "</label>\n";1098 } ?>1099 <br class="clear" />1100 </div>1101 1074 <?php endif; 1102 1075
Note: See TracChangeset
for help on using the changeset viewer.