mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Fix comments popup template load. Bug 545.
git-svn-id: https://develop.svn.wordpress.org/trunk@1960 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user