WordPress.org

Make WordPress Core

Changeset 36343


Ignore:
Timestamp:
01/18/2016 04:34:54 PM (4 years ago)
Author:
rachelbaker
Message:

Comments: Remove unused $default_comments_page variable in get_comment_link().

Left in r34735, fetches the default_comments_page option twice since this variable is unused.

See #34073 and #35511.

Props Latz.

File:
1 edited

Legend:

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

    r36324 r36343  
    731731         * do not need a 'cpage' query var.
    732732         */
    733         $default_comments_page = get_option( 'default_comments_page' );
    734733        if ( 'oldest' === get_option( 'default_comments_page' ) && 1 === $cpage ) {
    735734            $cpage = '';
Note: See TracChangeset for help on using the changeset viewer.