Prefer $comment::comment_post_ID over $post global. Fixes #12217
git-svn-id: http://svn.automattic.com/wordpress/trunk@13396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
18c313559f
commit
cb8fd85d1e
|
@ -1049,6 +1049,8 @@ function get_comment_reply_link($args = array(), $comment = null, $post = null)
|
||||||
extract($args, EXTR_SKIP);
|
extract($args, EXTR_SKIP);
|
||||||
|
|
||||||
$comment = get_comment($comment);
|
$comment = get_comment($comment);
|
||||||
|
if ( empty($post) )
|
||||||
|
$post = $comment->comment_post_ID;
|
||||||
$post = get_post($post);
|
$post = get_post($post);
|
||||||
|
|
||||||
if ( !comments_open($post->ID) )
|
if ( !comments_open($post->ID) )
|
||||||
|
|
Loading…
Reference in New Issue