Fix comments-popup.

git-svn-id: https://develop.svn.wordpress.org/trunk@2021 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-12-30 19:35:57 +00:00
parent e1c19b45fb
commit 5b811de7b8
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
// Template functions
function comments_template( $show ) {
function comments_template() {
global $wp_query, $withcomments, $post, $wpdb, $id, $comment;
if ( is_single() || is_page() || $withcomments ) :
@ -69,9 +69,9 @@ function comments_popup_script($width=400, $height=400, $file='') {
if (empty ($file)) {
if ( file_exists( TEMPLATEPATH . '/comments-popup.php') )
require( TEMPLATEPATH . '/comments-popup.php');
$wpcommentspopupfile = str_replace(ABSPATH, '', TEMPLATEPATH . '/comments-popup.php');
else
require( ABSPATH . 'wp-includes/wp-comments-popup.php');
$wpcommentspopupfile = 'wp-includes/wp-comments-popup.php';
} else {
$wpcommentspopupfile = $file;
}

View File

@ -1,7 +1,7 @@
<?php
/* Don't remove these lines. */
$blog = 1;
require ('wp-blog-header.php');
require ('../wp-blog-header.php');
add_filter('comment_text', 'popuplinks');
foreach ($posts as $post) { start_wp();
?>