Ticket #20899: 20899.2.diff
File 20899.2.diff, 1.4 KB (added by , 9 years ago) |
---|
-
src/wp-includes/query.php
1771 1771 if ( $this->is_feed && ( !empty($qv['withcomments']) || ( empty($qv['withoutcomments']) && $this->is_singular ) ) ) 1772 1772 $this->is_comment_feed = true; 1773 1773 1774 if ( !( $this->is_singular || $this->is_archive || $this->is_search || $this->is_feed ||( defined( 'REST_REQUEST' ) && REST_REQUEST ) || $this->is_trackback || $this->is_404 || $this->is_admin || $this->is_robots ) )1774 if ( !( $this->is_singular || $this->is_archive || $this->is_search || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) || $this->is_trackback || $this->is_404 || $this->is_admin || $this->is_robots ) ) 1775 1775 $this->is_home = true; 1776 1776 1777 1777 // Correct is_* for page_on_front and page_for_posts -
tests/phpunit/tests/feed/rss2.php
113 113 } 114 114 115 115 /** 116 * @ticket 20899 117 */ 118 function test_main_rss_should_be_home_and_feed() { 119 $this->go_to( '/?feed=rss2' ); 120 121 $this->assertTrue( is_home() && is_feed() ); 122 } 123 124 /** 116 125 * [test_channel_element description] 117 126 * @return [type] [description] 118 127 */