After [33961], pass $comment to get_comment_link() where possible to avoid extra cache/db lookups.
See #33638. Built from https://develop.svn.wordpress.org/trunk@34042 git-svn-id: http://core.svn.wordpress.org/trunk@34010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -151,7 +151,7 @@ $comment = get_comment( $comment_id );
|
||||
*/
|
||||
do_action( 'set_comment_cookies', $comment, $user );
|
||||
|
||||
$location = empty($_POST['redirect_to']) ? get_comment_link($comment_id) : $_POST['redirect_to'] . '#comment-' . $comment_id;
|
||||
$location = empty($_POST['redirect_to']) ? get_comment_link( $comment ) : $_POST['redirect_to'] . '#comment-' . $comment_id;
|
||||
|
||||
/**
|
||||
* Filter the location URI to send the commenter after posting.
|
||||
|
||||
Reference in New Issue
Block a user