WordPress.org

Make WordPress Core

Changeset 10361


Ignore:
Timestamp:
01/14/09 23:06:46 (7 years ago)
Author:
ryan
Message:

Don't return comment page links if paging is disabled. fixes #8824 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r10335 r10361  
    12571257    global $wp_query; 
    12581258 
    1259     if ( !is_singular() ) 
     1259    if ( !is_singular() || !get_option('page_comments') ) 
    12601260        return; 
    12611261 
     
    13001300 */ 
    13011301function get_previous_comments_link( $label = '' ) { 
    1302     if ( !is_singular() ) 
     1302    if ( !is_singular() || !get_option('page_comments') ) 
    13031303        return; 
    13041304 
     
    13391339    global $wp_query, $wp_rewrite; 
    13401340 
    1341     if ( !is_singular() ) 
     1341    if ( !is_singular() || !get_option('page_comments') ) 
    13421342        return; 
    13431343 
Note: See TracChangeset for help on using the changeset viewer.