[wp-trac] Re: [WordPress Trac] #2585: Add is() function that checks
for single object queries.
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 29 04:21:31 GMT 2006
#2585: Add is() function that checks for single object queries.
----------------------------+-----------------------------------------------
Id: 2585 | Status: new
Component: Administration | Modified: Wed Mar 29 04:21:31 2006
Severity: normal | Milestone: 2.1
Priority: normal | Version: 2.1
Owner: ryan | Reporter: ryan
----------------------------+-----------------------------------------------
Comment (by abhay):
There are no calls like what markjaquith mentioned. There are, however,
quite a few that ryan mentioned.
Here is a list of all calls that are associated with this patch:
{{{
./wp-commentsrss2.php:23: <title><?php if (is_single() || is_page()
) { printf(__('Comments on: %s'), get_the_title_rss()); } else {
printf(__('Comments for %s'), get_bloginfo_rss("name")); } ?></title>
./wp-commentsrss2.php:24: <link><?php (is_single()) ?
permalink_single_rss() : bloginfo_rss("url") ?></link>
./wp-commentsrss2.php:30: if (is_single() || is_page()) {
./wp-commentsrss2.php:55: <title><?php if ( ! (is_single()
|| is_page()) ) {
./wp-content/themes/default/header.php:7:<title><?php bloginfo('name'); ?>
<?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php
wp_title(); ?></title>
./wp-content/themes/default/header.php:21:<?php /* Checks to see whether
it needs a sidebar or not */ if ((! $withcomments) && (! is_single())) {
?>
./wp-trackback.php:50:if ( is_single() || is_page() )
./wp-includes/functions.php:1247: if ( is_single() || is_page() )
./wp-includes/functions.php:2262: if ( is_single() ||
(get_query_var('withcomments') == 1) ) {
./wp-includes/template-functions-general.php:189: if ( is_single()
|| is_page() ) {
./wp-includes/template-functions-links.php:211: if ( is_attachment() )
./wp-includes/template-functions-links.php:248: if( !is_single() ||
is_attachment() )
./wp-includes/template-functions-links.php:281: if( !is_single() ||
is_attachment() )
./wp-includes/template-functions-links.php:314: if ( is_attachment() )
./wp-includes/template-functions-links.php:420: if ( !is_single() ) {
./wp-includes/template-functions-links.php:437: if ( (! is_single()) &&
(empty($paged) || $nextpage <= $max_page) ) {
./wp-includes/template-functions-links.php:448: if ( !is_single() ) {
./wp-includes/template-functions-links.php:459: if ( (!is_single()) &&
($paged > 1) ) {
./wp-includes/template-functions-links.php:487: if ( !is_single() ) {
./wp-includes/template-loader.php:19: } else if ( is_attachment() &&
$template = get_attachment_template() ) {
./wp-includes/template-loader.php:22: } else if ( is_single() &&
$template = get_single_template() ) {
./wp-includes/template-loader.php:23: if ( is_attachment() )
./wp-includes/template-loader.php:27: } else if ( is_page() && $template
= get_page_template() ) {
./wp-includes/template-loader.php:28: if ( is_attachment() )
./wp-includes/template-loader.php:51: if ( is_attachment() )
./wp-includes/comment-functions.php:8: if ( is_single() || is_page() ||
$withcomments ) :
./wp-includes/comment-functions.php:297: if (! is_single() && !
is_page()) {
./wp-includes/classes.php:299: if ( is_single() || is_page() ) {
./wp-admin/edit.php:66: if ( is_single() )
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/2585>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list