Allow comments_popup_link() for is_single and is_page. Props AaronCampbell, sivel. fixes #4832
git-svn-id: http://svn.automattic.com/wordpress/trunk@10704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bf0796d4f8
commit
27a7f46249
|
@ -902,9 +902,6 @@ function comments_popup_script($width=400, $height=400, $file='') {
|
|||
function comments_popup_link( $zero = 'No Comments', $one = '1 Comment', $more = '% Comments', $css_class = '', $none = 'Comments Off' ) {
|
||||
global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post;
|
||||
|
||||
if ( is_single() || is_page() )
|
||||
return;
|
||||
|
||||
$number = get_comments_number( $id );
|
||||
|
||||
if ( 0 == $number && 'closed' == $post->comment_status && 'closed' == $post->ping_status ) {
|
||||
|
|
Loading…
Reference in New Issue