Changeset 35934
- Timestamp:
- 12/14/2015 07:56:14 PM (9 years ago)
- Location:
- branches/4.4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.4
-
branches/4.4/src/wp-includes/comment-template.php
r35932 r35934 737 737 } 738 738 739 if ( $cpage ) {739 if ( $cpage && get_option( 'page_comments' ) ) { 740 740 if ( $wp_rewrite->using_permalinks() ) { 741 741 if ( $cpage ) { -
branches/4.4/tests/phpunit/tests/comment/getCommentLink.php
r35331 r35934 121 121 $this->assertContains( 'cpage=3', $found ); 122 122 } 123 124 /** 125 * @ticket 34946 126 */ 127 public function test_should_not_contain_comment_page_1_when_pagination_is_disabled() { 128 $this->set_permalink_structure( '/%postname%/' ); 129 update_option( 'page_comments', 0 ); 130 131 $found = get_comment_link( self::$comments[1] ); 132 133 $this->assertNotContains( 'comment-page-1', $found ); 134 } 123 135 }
Note: See TracChangeset
for help on using the changeset viewer.