mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Load comments-popup template through the index.
git-svn-id: https://develop.svn.wordpress.org/trunk@2332 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1244,6 +1244,12 @@ function is_404 () {
|
||||
return $wp_query->is_404;
|
||||
}
|
||||
|
||||
function is_comments_popup () {
|
||||
global $wp_query;
|
||||
|
||||
return $wp_query->is_comments_popup;
|
||||
}
|
||||
|
||||
function is_paged () {
|
||||
global $wp_query;
|
||||
|
||||
@@ -1576,6 +1582,15 @@ function get_single_template() {
|
||||
return get_query_template('single');
|
||||
}
|
||||
|
||||
function get_comments_popup_template() {
|
||||
if ( file_exists( TEMPLATEPATH . '/comments-popup.php') )
|
||||
$template = TEMPLATEPATH . '/comments-popup.php';
|
||||
else
|
||||
$template = get_theme_base() . '/default/comments-popup.php';
|
||||
|
||||
return apply_filters('comments_popup_template', $template);
|
||||
}
|
||||
|
||||
// Borrowed from the PHP Manual user notes. Convert entities, while
|
||||
// preserving already-encoded entities:
|
||||
function htmlentities2($myHTML) {
|
||||
|
||||
Reference in New Issue
Block a user