forked from mirror/_s
Merge pull request #882 from byjml/patch-1
Use consistent syntax for control structures
This commit is contained in:
commit
ca2bfd6d8b
|
@ -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">
|
||||
|
|
Reference in New Issue