From da74b3654f1d06db14124a08e59227073d1d8f13 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 15 Dec 2004 02:03:08 +0000 Subject: [PATCH] Fix comments popup template load. Bug 545. git-svn-id: https://develop.svn.wordpress.org/trunk@1960 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 b0751fc86b..cc61dc3301 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'; }