Changeset 51121 for trunk/src/wp-includes/link-template.php
- Timestamp:
- 06/08/2021 10:59:19 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r51024 r51121 736 736 * @param string $feed Optional. Feed type. Possible values include 'rss2', 'atom'. 737 737 * Default is the value of get_default_feed(). 738 * @return string The permalink for the comments feed for the given post .738 * @return string The permalink for the comments feed for the given post on success, empty string on failure. 739 739 */ 740 740 function get_post_comments_feed_link( $post_id = 0, $feed = '' ) { … … 749 749 } 750 750 751 $post = get_post( $post_id ); 751 $post = get_post( $post_id ); 752 753 // Bail out if the post does not exist. 754 if ( ! $post instanceof WP_Post ) { 755 return ''; 756 } 757 752 758 $unattached = 'attachment' === $post->post_type && 0 === (int) $post->post_parent; 753 759
Note: See TracChangeset
for help on using the changeset viewer.