This repository was archived by the owner on Sep 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7272
7373 <?php
7474 // If comments are closed and there are comments, let's leave a little note, shall we?
75- if ( ! comments_open () && ' 0 ' != get_comments_number () && post_type_supports ( get_post_type (), 'comments ' ) ) :
75+ if ( ! comments_open () && get_comments_number () && post_type_supports ( get_post_type (), 'comments ' ) ) :
7676 ?>
7777 <p class="no-comments"><?php esc_html_e ( 'Comments are closed. ' , '_s ' ); ?> </p>
7878 <?php endif ; ?>
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ function _s_header_style() {
4747
4848 // If no custom options for text are set, let's bail
4949 // get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value.
50- if ( HEADER_TEXTCOLOR == $ header_text_color ) {
50+ if ( HEADER_TEXTCOLOR === $ header_text_color ) {
5151 return ;
5252 }
5353
@@ -56,7 +56,7 @@ function _s_header_style() {
5656 <style type="text/css">
5757 <?php
5858 // Has the text been hidden?
59- if ( 'blank ' == $ header_text_color ) :
59+ if ( 'blank ' === $ header_text_color ) :
6060 ?>
6161 .site-title,
6262 .site-description {
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ function _s_posted_on() {
4545 */
4646function _s_entry_footer () {
4747 // Hide category and tag text for pages.
48- if ( 'post ' == get_post_type () ) {
48+ if ( 'post ' === get_post_type () ) {
4949 /* translators: used between list items, there is a space after the comma */
5050 $ categories_list = get_the_category_list ( esc_html__ ( ', ' , '_s ' ) );
5151 if ( $ categories_list && _s_categorized_blog () ) {
Original file line number Diff line number Diff line change 1313 <header class="entry-header">
1414 <?php the_title ( sprintf ( '<h2 class="entry-title"><a href="%s" rel="bookmark"> ' , esc_url ( get_permalink () ) ), '</a></h2> ' ); ?>
1515
16- <?php if ( 'post ' == get_post_type () ) : ?>
16+ <?php if ( 'post ' === get_post_type () ) : ?>
1717 <div class="entry-meta">
1818 <?php _s_posted_on (); ?>
1919 </div><!-- .entry-meta -->
Original file line number Diff line number Diff line change 1313 <header class="entry-header">
1414 <?php the_title ( sprintf ( '<h2 class="entry-title"><a href="%s" rel="bookmark"> ' , esc_url ( get_permalink () ) ), '</a></h2> ' ); ?>
1515
16- <?php if ( 'post ' == get_post_type () ) : ?>
16+ <?php if ( 'post ' === get_post_type () ) : ?>
1717 <div class="entry-meta">
1818 <?php _s_posted_on (); ?>
1919 </div><!-- .entry-meta -->
You can’t perform that action at this time.
0 commit comments