Better WordPress Coding standards.

This minor commit kicks off code improvements to _s so that it’s fully in line with WordPress Coding Standards rules.
This commit is contained in:
Philip Arthur Moore 2014-11-01 07:09:58 +07:00
parent eab9f19d63
commit 2540fb7b7f
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@
<?php <?php
/* translators: %s: Name of current post */ /* translators: %s: Name of current post */
the_content( sprintf( the_content( sprintf(
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', '_s' ), __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', '_s' ),
the_title( '<span class="screen-reader-text">"', '"</span>', false ) the_title( '<span class="screen-reader-text">"', '"</span>', false )
) ); ) );
?> ?>
@ -35,4 +35,4 @@
<footer class="entry-footer"> <footer class="entry-footer">
<?php _s_entry_footer(); ?> <?php _s_entry_footer(); ?>
</footer><!-- .entry-footer --> </footer><!-- .entry-footer -->
</article><!-- #post-## --> </article><!-- #post-## -->

View File

@ -69,7 +69,7 @@ function _s_header_style() {
?> ?>
.site-title a, .site-title a,
.site-description { .site-description {
color: #<?php echo $header_text_color; ?>; color: #<?php echo esc_attr( $header_text_color ); ?>;
} }
<?php endif; ?> <?php endif; ?>
</style> </style>
@ -123,4 +123,4 @@ function _s_admin_header_image() {
</div> </div>
<?php <?php
} }
endif; // _s_admin_header_image endif; // _s_admin_header_image