Merge pull request #882 from byjml/patch-1

Use consistent syntax for control structures
This commit is contained in:
Konstantin Obenland 2016-07-14 08:31:57 -07:00 committed by GitHub
commit ca2bfd6d8b
1 changed files with 5 additions and 5 deletions

View File

@ -12,11 +12,11 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php
if ( is_single() ) {
if ( is_single() ) :
the_title( '<h1 class="entry-title">', '</h1>' );
} else {
else :
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
}
endif;
if ( 'post' === get_post_type() ) : ?>
<div class="entry-meta">