Skip to content

Commit

Permalink
General code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Tadlock committed Jan 6, 2016
1 parent 579d7c2 commit c12e181
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion comments.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
/* If a post password is required or no comments are given and comments/pings are closed, return. */
// If a post password is required or no comments are given and comments/pings are closed, return.
if ( post_password_required() || ( !have_comments() && !comments_open() && !pings_open() ) )
return;
?>
Expand Down
4 changes: 2 additions & 2 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

<p class="credit">
<?php printf(
/* Translators: 1 is current year, 2 is site name/link, 3 is WordPress name/link, and 4 is theme name/link. */
__( 'Copyright &#169; %1$s %2$s. Powered by %3$s and %4$s.', 'stargazer' ),
// Translators: 1 is current year, 2 is site name/link, 3 is WordPress name/link, and 4 is theme name/link. */
__( 'Copyright &#169; %1$s %2$s. Powered by %3$s and %4$s.', 'stargazer' ),
date_i18n( 'Y' ), hybrid_get_site_link(), hybrid_get_wp_link(), hybrid_get_theme_link()
); ?>
</p><!-- .credit -->
Expand Down
6 changes: 3 additions & 3 deletions misc/comments-error.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php if ( pings_open() && !comments_open() ) : ?>
<?php if ( pings_open() && ! comments_open() ) : ?>

<p class="comments-closed pings-open">
<?php
/* Translators: The two %s are placeholders for HTML. The order can't be changed. */
// Translators: The two %s are placeholders for HTML. The order can't be changed.
printf( __( 'Comments are closed, but %strackbacks%s and pingbacks are open.', 'stargazer' ), '<a href="' . esc_url( get_trackback_url() ) . '">', '</a>' );
?>
</p><!-- .comments-closed .pings-open -->

<?php elseif ( !comments_open() ) : ?>
<?php elseif ( ! comments_open() ) : ?>

<p class="comments-closed">
<?php _e( 'Comments are closed.', 'stargazer' ); ?>
Expand Down
6 changes: 3 additions & 3 deletions misc/comments-nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

<?php previous_comments_link( _x( '&larr; Previous', 'comments navigation', 'stargazer' ) ); ?>

<span class="page-numbers"><?php
/* Translators: Comments page numbers. 1 is current page and 2 is total pages. */
printf( __( 'Page %1$s of %2$s', 'stargazer' ), get_query_var( 'cpage' ) ? absint( get_query_var( 'cpage' ) ) : 1, get_comment_pages_count() );
<span class="page-numbers"><?php
// Translators: Comments page numbers. 1 is current page and 2 is total pages.
printf( __( 'Page %1$s of %2$s', 'stargazer' ), get_query_var( 'cpage' ) ? absint( get_query_var( 'cpage' ) ) : 1, get_comment_pages_count() );
?></span>

<?php next_comments_link( _x( 'Next &rarr;', 'comments navigation', 'stargazer' ) ); ?>
Expand Down
4 changes: 2 additions & 2 deletions sidebar/primary.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php if ( !in_array( get_theme_mod( 'theme_layout' ), array( '1c', '1c-narrow' ) ) ) : // If not a one-column layout. ?>
<?php if ( ! in_array( get_theme_mod( 'theme_layout' ), array( '1c', '1c-narrow' ) ) ) : // If not a one-column layout. ?>

<aside <?php hybrid_attr( 'sidebar', 'primary' ); ?>>

<h3 id="sidebar-primary-title" class="screen-reader-text"><?php
/* Translators: %s is the sidebar name. This is the sidebar title shown to screen readers. */
// Translators: %s is the sidebar name. This is the sidebar title shown to screen readers.
printf( _x( '%s Sidebar', 'sidebar title', 'stargazer' ), hybrid_get_sidebar_name( 'primary' ) );
?></h3>

Expand Down

0 comments on commit c12e181

Please sign in to comment.