Permalink
Browse files

Fixed issues using ns theme check plugin

  • Loading branch information...
Nidhi Jain
Nidhi Jain committed Oct 22, 2017
1 parent 7d83b2e commit 726a61ef5b8990dcde5cca4ca4d7a415700a6722
Showing with 21 additions and 8 deletions.
  1. +18 −5 comments.php
  2. +1 −1 inc/custom-header.php
  3. +1 −1 inc/template-tags.php
  4. +1 −1 style.css
View
@@ -27,11 +27,24 @@
if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
printf( // WPCS: XSS OK.
esc_html( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'teller' ) ),
number_format_i18n( get_comments_number() ),
'<span>' . get_the_title() . '</span>'
);
$comments_number = get_comments_number();
if ( 1 === $comments_number ) {
/* translators: %s: post title */
printf( _x( 'One thought on &ldquo;%s&rdquo;', 'comments title', 'teller' ), get_the_title() );
} else {
printf(
/* translators: 1: number of comments, 2: post title */
_nx(
'%1$s thought on &ldquo;%2$s&rdquo;',
'%1$s thoughts on &ldquo;%2$s&rdquo;',
$comments_number,
'comments title',
'teller'
),
number_format_i18n( $comments_number ),
get_the_title()
);
}
?>
</h2>
View
@@ -45,7 +45,7 @@ function teller_header_style() {
* If no custom options for text are set, let's bail.
* get_header_textcolor() options: Any hex value, 'blank' to hide text. Default: HEADER_TEXTCOLOR.
*/
if ( HEADER_TEXTCOLOR === $header_text_color ) {
if ( add_theme_support( 'custom-header' ) === $header_text_color ) {
return;
}
View
@@ -25,7 +25,7 @@ function teller_posted_on() {
);
$posted_on = sprintf(
esc_html_x( '%s', 'post date', 'teller' ),
esc_html( '%s', 'post date', 'teller' ),
'<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
);
View
@@ -1,6 +1,6 @@
/*
Theme Name: Teller
Theme URI:
Theme URI: https://github.com/jainnidhi/teller
Author: Nidhi Jain
Author URI: http://iamnidhi.in/
Description: Teller is responsive blogging theme, perfect for everyone who wants to start personal blog. The theme is well designed, clean, efficient and does not required any other things. User can easily add social icons through customizer for Facebook, Google Plus, Linkedin, Twitter.

0 comments on commit 726a61e

Please sign in to comment.