mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
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:
parent
7123b0b62a
commit
27ec6b7e00
@ -23,13 +23,13 @@
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php if ( is_search() ) : // Only display Excerpts for search pages ?>
|
||||
<div class="entry-summary">
|
||||
<?php the_excerpt(); ?>
|
||||
</div><!-- .entry-summary -->
|
||||
<?php else : ?>
|
||||
<div class="entry-content">
|
||||
<?php if ( post_password_required() ) : ?>
|
||||
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?>
|
||||
<div class="entry-summary">
|
||||
<?php the_excerpt(); ?>
|
||||
</div><!-- .entry-summary -->
|
||||
<?php else : ?>
|
||||
<div class="entry-content">
|
||||
<?php if ( post_password_required() ) : ?>
|
||||
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?>
|
||||
|
||||
<?php else : ?>
|
||||
<?php
|
||||
|
@ -12,7 +12,7 @@
|
||||
<header class="entry-header">
|
||||
<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">
|
||||
<?php twentyeleven_posted_on(); ?>
|
||||
</div><!-- .entry-meta -->
|
||||
|
@ -12,7 +12,7 @@
|
||||
<header class="entry-header">
|
||||
<?php if ( is_sticky() ) : ?>
|
||||
<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>
|
||||
</hgroup>
|
||||
<?php else : ?>
|
||||
@ -44,7 +44,7 @@
|
||||
<?php endif; ?>
|
||||
|
||||
<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
|
||||
/* translators: used between list items, there is a space after the comma */
|
||||
|
@ -72,8 +72,7 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget {
|
||||
),
|
||||
),
|
||||
);
|
||||
$ephemera = new WP_Query();
|
||||
$ephemera->query( $ephemera_args );
|
||||
$ephemera = new WP_Query( $ephemera_args );
|
||||
|
||||
if ( $ephemera->have_posts() ) :
|
||||
|
||||
|
@ -178,8 +178,7 @@ get_header(); ?>
|
||||
'no_found_rows' => true,
|
||||
);
|
||||
// Our new query for the Recent Posts section.
|
||||
$recent = new WP_Query();
|
||||
$recent->query( $recent_args );
|
||||
$recent = new WP_Query( $recent_args );
|
||||
$counter = 0;
|
||||
|
||||
while ( $recent->have_posts() ) : $recent->the_post();
|
||||
|
Loading…
Reference in New Issue
Block a user