[wp-cvs]
wordpress/wp-includes template-functions-comment.php, 1.36, 1.37
Ryan Boren
rboren at users.sourceforge.net
Wed Dec 15 02:03:11 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15607/wp-includes
Modified Files:
template-functions-comment.php
Log Message:
Fix comments popup template load. Bug 545.
Index: template-functions-comment.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/template-functions-comment.php,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** template-functions-comment.php 12 Dec 2004 20:41:18 -0000 1.36
--- template-functions-comment.php 15 Dec 2004 02:03:08 -0000 1.37
***************
*** 76,87 ****
}
! function comments_popup_script($width=400, $height=400, $file='wp-comments-popup.php') {
global $wpcommentspopupfile, $wptrackbackpopupfile, $wppingbackpopupfile, $wpcommentsjavascript;
if (empty ($file)) {
! $template = get_template_directory();
! $template .= '/comments-popup.php';
if (file_exists($template)) {
! $wpcommentspopupfile = $template;
} else {
$wpcommentspopupfile = 'wp-comments-popup.php';
--- 76,86 ----
}
! function comments_popup_script($width=400, $height=400, $file='') {
global $wpcommentspopupfile, $wptrackbackpopupfile, $wppingbackpopupfile, $wpcommentsjavascript;
if (empty ($file)) {
! $template = TEMPLATEPATH . '/comments-popup.php';
if (file_exists($template)) {
! $wpcommentspopupfile = str_replace(ABSPATH, '', $template);
} else {
$wpcommentspopupfile = 'wp-comments-popup.php';
More information about the cvs
mailing list