We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f012da commit 7eb5228Copy full SHA for 7eb5228
src/wp-includes/general-template.php
@@ -3327,9 +3327,8 @@ function feed_links_extra( $args = array() ) {
3327
$args = apply_filters( 'feed_links_extra_args', $args );
3328
3329
// Singular objects only, excluding a single `show_on_front` Home Page.
3330
- if ( is_singular() && ! is_home() ) {
3331
- $id = 0;
3332
- $post = get_post( $id );
+ $post = get_post();
+ if ( is_singular() && ! is_home() && $post instanceof WP_Post ) {
3333
3334
/** This filter is documented in wp-includes/general-template.php */
3335
$show_comments_feed = apply_filters( 'feed_links_show_comments_feed', true );
0 commit comments