Changeset 58129 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 05/10/2024 06:07:17 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r57860 r58129 1200 1200 */ 1201 1201 function get_available_post_statuses( $type = 'post' ) { 1202 $stat i= wp_count_posts( $type );1203 1204 return array_keys( get_object_vars( $stat i) );1202 $statuses = wp_count_posts( $type ); 1203 1204 return array_keys( get_object_vars( $statuses ) ); 1205 1205 } 1206 1206 … … 1218 1218 $q = $_GET; 1219 1219 } 1220 $q['m'] = isset( $q['m'] ) ? (int) $q['m'] : 0; 1221 $q['cat'] = isset( $q['cat'] ) ? (int) $q['cat'] : 0; 1222 $post_stati = get_post_stati(); 1220 1221 $q['m'] = isset( $q['m'] ) ? (int) $q['m'] : 0; 1222 $q['cat'] = isset( $q['cat'] ) ? (int) $q['cat'] : 0; 1223 1224 $post_statuses = get_post_stati(); 1223 1225 1224 1226 if ( isset( $q['post_type'] ) && in_array( $q['post_type'], get_post_types(), true ) ) { … … 1232 1234 $perm = ''; 1233 1235 1234 if ( isset( $q['post_status'] ) && in_array( $q['post_status'], $post_stat i, true ) ) {1236 if ( isset( $q['post_status'] ) && in_array( $q['post_status'], $post_statuses, true ) ) { 1235 1237 $post_status = $q['post_status']; 1236 1238 $perm = 'readable';
Note: See TracChangeset
for help on using the changeset viewer.