WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/31/2015 05:15:23 PM (5 years ago)
Author:
rachelbaker
Message:

Feeds: Comments on attachments display in the site-wide comments RSS feed.

Individual attachment pages already have their own RSS comment feed, and would be expected to be included in the site-wide comments RSS feed.

Props jbrinley.
Fixes #15610

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/query/conditionals.php

    r35679 r36138  
    5656        $this->go_to( get_post_comments_feed_link( $post_id ) );
    5757        $this->assertQueryTrue('is_feed', 'is_single', 'is_singular', 'is_comment_feed');
     58    }
     59
     60    function test_attachment_comments_feed() {
     61        $attachment_id = self::factory()->post->create( array( 'post_type' => 'attachment' ) );
     62        self::factory()->comment->create_post_comments( $attachment_id, 2 );
     63        $this->go_to( get_post_comments_feed_link( $attachment_id ) );
     64        $this->assertQueryTrue( 'is_feed', 'is_attachment', 'is_single', 'is_singular', 'is_comment_feed' );
    5865    }
    5966
Note: See TracChangeset for help on using the changeset viewer.