Changeset 47122 for trunk/src/wp-admin/includes/class-wp-screen.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/class-wp-screen.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-screen.php
r46685 r47122 227 227 if ( $hook_name && post_type_exists( $hook_name ) ) { 228 228 $post_type = $id; 229 $id = 'post'; // changes later. ends up being $base.229 $id = 'post'; // Changes later. Ends up being $base. 230 230 } else { 231 231 if ( '.php' == substr( $id, -4 ) ) { … … 924 924 </div> 925 925 <?php 926 // Setup layout columns 926 // Setup layout columns. 927 927 928 928 /** … … 953 953 $GLOBALS['screen_layout_columns'] = $this->columns; // Set the global for back-compat. 954 954 955 // Add screen options 955 // Add screen options. 956 956 if ( $this->show_screen_options() ) { 957 957 $this->render_screen_options(); … … 1157 1157 1158 1158 foreach ( $columns as $column => $title ) { 1159 // Can't hide these for they are special 1159 // Can't hide these for they are special. 1160 1160 if ( in_array( $column, $special ) ) { 1161 1161 continue; … … 1256 1256 } 1257 1257 1258 // Back compat 1258 // Back compat. 1259 1259 if ( isset( $this->post_type ) ) { 1260 1260 /** This filter is documented in wp-admin/includes/post.php */ … … 1262 1262 } 1263 1263 1264 // This needs a submit button 1264 // This needs a submit button. 1265 1265 add_filter( 'screen_options_show_submit', '__return_true' ); 1266 1266 … … 1289 1289 $screen = get_current_screen(); 1290 1290 1291 // Currently only enabled for posts lists 1291 // Currently only enabled for posts lists. 1292 1292 if ( 'edit' !== $screen->base ) { 1293 1293 return; … … 1317 1317 global $mode; 1318 1318 1319 // This needs a submit button 1319 // This needs a submit button. 1320 1320 add_filter( 'screen_options_show_submit', '__return_true' ); 1321 1321 ?>
Note: See TracChangeset
for help on using the changeset viewer.