Changeset 61171
- Timestamp:
- 11/06/2025 10:22:52 PM (8 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r61110 r61171 1513 1513 global $wp_post_statuses; 1514 1514 1515 if ( empty( $wp_post_statuses[ $post_status ] ) ) {1515 if ( ! is_string( $post_status ) || empty( $wp_post_statuses[ $post_status ] ) ) { 1516 1516 return null; 1517 1517 } … … 2456 2456 function is_post_status_viewable( $post_status ) { 2457 2457 if ( is_scalar( $post_status ) ) { 2458 if ( ! is_string( $post_status ) ) { 2459 return false; 2460 } 2461 2458 2462 $post_status = get_post_status_object( $post_status ); 2459 2463
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)