Changeset 35933
- Timestamp:
- 12/14/2015 07:45:45 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r35931 r35933 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 ) { -
trunk/tests/phpunit/tests/comment/getCommentLink.php
r35858 r35933 129 129 $this->assertContains( 'cpage=3', $found ); 130 130 } 131 132 /** 133 * @ticket 34946 134 */ 135 public function test_should_not_contain_comment_page_1_when_pagination_is_disabled() { 136 $this->set_permalink_structure( '/%postname%/' ); 137 update_option( 'page_comments', 0 ); 138 139 $found = get_comment_link( self::$comments[1] ); 140 141 $this->assertNotContains( 'comment-page-1', $found ); 142 } 131 143 }
Note: See TracChangeset
for help on using the changeset viewer.