Remove debug comments & more housecleaning. See #17748

git-svn-id: http://svn.automattic.com/wordpress/trunk@18266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2011-06-11 03:44:42 +00:00
parent 7123b0b62a
commit 27ec6b7e00
5 changed files with 12 additions and 14 deletions

View File

@ -23,13 +23,13 @@
</header><!-- .entry-header --> </header><!-- .entry-header -->
<?php if ( is_search() ) : // Only display Excerpts for search pages ?> <?php if ( is_search() ) : // Only display Excerpts for search pages ?>
<div class="entry-summary"> <div class="entry-summary">
<?php the_excerpt(); ?> <?php the_excerpt(); ?>
</div><!-- .entry-summary --> </div><!-- .entry-summary -->
<?php else : ?> <?php else : ?>
<div class="entry-content"> <div class="entry-content">
<?php if ( post_password_required() ) : ?> <?php if ( post_password_required() ) : ?>
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?> <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
<?php else : ?> <?php else : ?>
<?php <?php

View File

@ -12,7 +12,7 @@
<header class="entry-header"> <header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1> <h1 class="entry-title"><?php the_title(); ?></h1>
<?php if ( 'post' == get_post_type() ) : /* Bit of a disconnect here, Some files include this test, not all do. */ ?> <?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta"> <div class="entry-meta">
<?php twentyeleven_posted_on(); ?> <?php twentyeleven_posted_on(); ?>
</div><!-- .entry-meta --> </div><!-- .entry-meta -->

View File

@ -12,7 +12,7 @@
<header class="entry-header"> <header class="entry-header">
<?php if ( is_sticky() ) : ?> <?php if ( is_sticky() ) : ?>
<hgroup> <hgroup>
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) /* Y NO ARRAY! */ ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<h2 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h2> <h2 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h2>
</hgroup> </hgroup>
<?php else : ?> <?php else : ?>
@ -44,7 +44,7 @@
<?php endif; ?> <?php endif; ?>
<footer class="entry-meta"> <footer class="entry-meta">
<?php $show_sep = false; // perhaps a implode(' | ', $utilities) could be used instead of this $show_sep business? ?> <?php $show_sep = false; ?>
<?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?> <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
<?php <?php
/* translators: used between list items, there is a space after the comma */ /* translators: used between list items, there is a space after the comma */

View File

@ -72,8 +72,7 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget {
), ),
), ),
); );
$ephemera = new WP_Query(); $ephemera = new WP_Query( $ephemera_args );
$ephemera->query( $ephemera_args );
if ( $ephemera->have_posts() ) : if ( $ephemera->have_posts() ) :

View File

@ -178,8 +178,7 @@ get_header(); ?>
'no_found_rows' => true, 'no_found_rows' => true,
); );
// Our new query for the Recent Posts section. // Our new query for the Recent Posts section.
$recent = new WP_Query(); $recent = new WP_Query( $recent_args );
$recent->query( $recent_args );
$counter = 0; $counter = 0;
while ( $recent->have_posts() ) : $recent->the_post(); while ( $recent->have_posts() ) : $recent->the_post();