mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 23:41:38 +01:00
Remove dead code added to get_comment_link()
in [34735].
See #34073. Built from https://develop.svn.wordpress.org/trunk@34792 git-svn-id: http://core.svn.wordpress.org/trunk@34757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1137b70ef3
commit
ca86a8a404
@ -726,14 +726,6 @@ function get_comment_link( $comment = null, $args = array() ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Drop the 'page' var if we're on the default page.
|
|
||||||
$comment_post = get_post( $comment->comment_post_ID );
|
|
||||||
if ( $args['per_page'] ) {
|
|
||||||
$total_pages = ceil( $comment_post->comment_count / $args['per_page'] );
|
|
||||||
} else {
|
|
||||||
$total_pages = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If the default page displays the oldest comments, the permalinks for comments on the default page
|
* If the default page displays the oldest comments, the permalinks for comments on the default page
|
||||||
* do not need a 'cpage' query var.
|
* do not need a 'cpage' query var.
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34791';
|
$wp_version = '4.4-alpha-34792';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user