diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
index 5377f4eaee..90b0417b27 100644
|
a
|
b
|
function get_extended( $post ) { |
| 973 | 973 | * |
| 974 | 974 | * @global WP_Post $post Global post object. |
| 975 | 975 | * |
| 976 | | * @param int|WP_Post|null $post Optional. Post ID or post object. `null`, `false`, `0` and other PHP falsey values |
| | 976 | * @param int|WP_Post|null $post Optional. Post ID or post object. `null`, `false`, `0` and other PHP falsy values |
| 977 | 977 | * return the current global post inside the loop. A numerically valid post ID that |
| 978 | 978 | * points to a non-existent post returns `null`. Defaults to global $post. |
| 979 | 979 | * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which |
| … |
… |
function is_post_type_viewable( $post_type ) { |
| 2277 | 2277 | * The returned filtered value must be a boolean type to ensure |
| 2278 | 2278 | * `is_post_type_viewable()` only returns a boolean. This strictness |
| 2279 | 2279 | * is by design to maintain backwards-compatibility and guard against |
| 2280 | | * potential type errors in PHP 8.1+. Non-boolean values (even falsey |
| | 2280 | * potential type errors in PHP 8.1+. Non-boolean values (even falsy |
| 2281 | 2281 | * and truthy values) will result in the function returning false. |
| 2282 | 2282 | * |
| 2283 | 2283 | * @since 5.9.0 |
| … |
… |
function is_post_type_viewable( $post_type ) { |
| 2291 | 2291 | /** |
| 2292 | 2292 | * Determine whether a post status is considered "viewable". |
| 2293 | 2293 | * |
| 2294 | | * For built-in post statuses such as publish and private, the 'public' value will be evaluted. |
| | 2294 | * For built-in post statuses such as publish and private, the 'public' value will be evaluated. |
| 2295 | 2295 | * For all others, the 'publicly_queryable' value will be used. |
| 2296 | 2296 | * |
| 2297 | 2297 | * @since 5.7.0 |
| … |
… |
function is_post_status_viewable( $post_status ) { |
| 2324 | 2324 | * The returned filtered value must be a boolean type to ensure |
| 2325 | 2325 | * `is_post_status_viewable()` only returns a boolean. This strictness |
| 2326 | 2326 | * is by design to maintain backwards-compatibility and guard against |
| 2327 | | * potential type errors in PHP 8.1+. Non-boolean values (even falsey |
| | 2327 | * potential type errors in PHP 8.1+. Non-boolean values (even falsy |
| 2328 | 2328 | * and truthy values) will result in the function returning false. |
| 2329 | 2329 | * |
| 2330 | 2330 | * @since 5.9.0 |