Fix comments-popup.
git-svn-id: https://develop.svn.wordpress.org/trunk@2021 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e1c19b45fb
commit
5b811de7b8
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
// Template functions
|
// Template functions
|
||||||
|
|
||||||
function comments_template( $show ) {
|
function comments_template() {
|
||||||
global $wp_query, $withcomments, $post, $wpdb, $id, $comment;
|
global $wp_query, $withcomments, $post, $wpdb, $id, $comment;
|
||||||
|
|
||||||
if ( is_single() || is_page() || $withcomments ) :
|
if ( is_single() || is_page() || $withcomments ) :
|
||||||
|
@ -69,9 +69,9 @@ function comments_popup_script($width=400, $height=400, $file='') {
|
||||||
|
|
||||||
if (empty ($file)) {
|
if (empty ($file)) {
|
||||||
if ( file_exists( TEMPLATEPATH . '/comments-popup.php') )
|
if ( file_exists( TEMPLATEPATH . '/comments-popup.php') )
|
||||||
require( TEMPLATEPATH . '/comments-popup.php');
|
$wpcommentspopupfile = str_replace(ABSPATH, '', TEMPLATEPATH . '/comments-popup.php');
|
||||||
else
|
else
|
||||||
require( ABSPATH . 'wp-includes/wp-comments-popup.php');
|
$wpcommentspopupfile = 'wp-includes/wp-comments-popup.php';
|
||||||
} else {
|
} else {
|
||||||
$wpcommentspopupfile = $file;
|
$wpcommentspopupfile = $file;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
/* Don't remove these lines. */
|
/* Don't remove these lines. */
|
||||||
$blog = 1;
|
$blog = 1;
|
||||||
require ('wp-blog-header.php');
|
require ('../wp-blog-header.php');
|
||||||
add_filter('comment_text', 'popuplinks');
|
add_filter('comment_text', 'popuplinks');
|
||||||
foreach ($posts as $post) { start_wp();
|
foreach ($posts as $post) { start_wp();
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue