Skip to content

Commit 0ffc677

Browse files
author
Cosmin
authored
Merge pull request #21 from c0sm1n87/master
https://themes.trac.wordpress.org/ticket/36434#comment:5
2 parents b1b1917 + 377e7ec commit 0ffc677

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

inc/class-shapely-related-posts.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ public function get_related_posts( $post_id, $number_posts = - 1 ) {
120120

121121
// reset post query
122122
wp_reset_postdata();
123-
wp_reset_query();
124123

125124
return $related_postquery;
126125
}
@@ -210,8 +209,7 @@ function output_related_posts() {
210209

211210
echo '</div><!--/.owlCarousel-->';
212211
echo '</div><!--/.mt-related-posts-->';
213-
214-
wp_reset_query();
212+
215213
wp_reset_postdata();
216214
}
217215
}

inc/extras.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ class="<?php echo $breadcrumbs_enabled ? 'col-md-6 col-sm-6 col-xs-12' : 'col-xs
648648
<h3 class="page-title" <?php echo $header_color ? 'style="color:#' . esc_attr( $header_color ) . '"' : '' ?>>
649649
<?php
650650
if ( is_home() ) {
651-
_e( ( get_theme_mod( 'blog_name' ) ) ? get_theme_mod( 'blog_name' ) : 'Blog', 'shapely' );
651+
echo esc_html( get_theme_mod( 'blog_name' ) ? get_theme_mod( 'blog_name' ) : __( 'Blog', 'shapely' ) );
652652
} else if ( is_search() ) {
653653
_e( 'Search', 'shapely' );
654654
} else if ( is_archive() ) {

0 commit comments

Comments
 (0)