From 914be4bf026cb8dc03835017cdbce0d741517e4e Mon Sep 17 00:00:00 2001 From: rboren Date: Wed, 15 Dec 2004 02:03:08 +0000 Subject: [PATCH] Fix comments popup template load. Bug 545. git-svn-id: http://svn.automattic.com/wordpress/trunk@1960 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-comment.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wp-includes/template-functions-comment.php b/wp-includes/template-functions-comment.php index b0751fc86..cc61dc330 100644 --- a/wp-includes/template-functions-comment.php +++ b/wp-includes/template-functions-comment.php @@ -75,14 +75,13 @@ function comments_link($file='', $echo=true) { else echo get_permalink() . '#comments'; } -function comments_popup_script($width=400, $height=400, $file='wp-comments-popup.php') { +function comments_popup_script($width=400, $height=400, $file='') { global $wpcommentspopupfile, $wptrackbackpopupfile, $wppingbackpopupfile, $wpcommentsjavascript; if (empty ($file)) { - $template = get_template_directory(); - $template .= '/comments-popup.php'; + $template = TEMPLATEPATH . '/comments-popup.php'; if (file_exists($template)) { - $wpcommentspopupfile = $template; + $wpcommentspopupfile = str_replace(ABSPATH, '', $template); } else { $wpcommentspopupfile = 'wp-comments-popup.php'; }