Changeset 50401 for trunk/src/wp-includes/embed.php
- Timestamp:
- 02/22/2021 01:21:26 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/embed.php
r50371 r50401 510 510 * @param WP_Post|int $post Post object or ID. 511 511 * @param int $width The requested width. 512 * @return array|false Response data on success, false if post doesn't exist. 512 * @return array|false Response data on success, false if post doesn't exist 513 * or is not publicly viewable. 513 514 */ 514 515 function get_oembed_response_data( $post, $width ) { … … 520 521 } 521 522 522 if ( 'publish' !== get_post_status( $post ) ) {523 if ( ! is_post_publicly_viewable( $post ) ) { 523 524 return false; 524 525 }
Note: See TracChangeset
for help on using the changeset viewer.