Created
August 20, 2017 07:51
-
-
Save mayukojpn/744899d054e558893baadfd93f914f4e to your computer and use it in GitHub Desktop.
Remove unused translator comments.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/functions.php b/functions.php | |
--- a/functions.php | |
+++ b/functions.php | |
@@ -540,7 +540,6 @@ if ( ! function_exists( 'sitepoint_base_posted_on' ) ) { | |
break; | |
} | |
- // Translators: 1: Icon 2: Permalink 3: Post date and time 4: Publish date in ISO format 5: Post date | |
$date = sprintf( '<span class="publish-date"><i class="fa %1$s" aria-hidden="true"></i> <a href="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" itemprop="datePublished">%4$s</time></a></span>', | |
$post_icon, | |
esc_url( get_permalink() ), | |
@@ -548,16 +547,15 @@ if ( ! function_exists( 'sitepoint_base_posted_on' ) ) { | |
esc_html( get_the_date() ) | |
); | |
- // Translators: 1: Date link 2: Author link 3: Categories 4: No. of Comments | |
$author = sprintf( '<span class="publish-author"><i class="fa fa-pencil" aria-hidden="true"></i> <address class="author vcard"><a class="url fn n" href="%1$s" rel="author">%2$s</a></address></span>', | |
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), | |
get_the_author() | |
); | |
// Return the Categories as a list | |
+ // Translators: Tag separator | |
$categories_list = get_the_category_list( esc_html__( ' ', 'sitepoint-base' ) ); | |
- // Translators: 1: Permalink 2: Title 3: No. of Comments | |
$comments = sprintf( '<span class="comments-link"><i class="fa fa-comment" aria-hidden="true"></i> <a href="%1$s">%2$s</a></span>', | |
esc_url( get_comments_link() ), | |
( get_comments_number() > 0 ? sprintf( _n( '%1$s Comment', '%1$s Comments', get_comments_number(), 'sitepoint-base' ), get_comments_number() ) : esc_html__( 'No Comments', 'sitepoint-base' ) ) | |
@@ -587,6 +585,7 @@ if ( ! function_exists( 'sitepoint_base_posted_on' ) ) { | |
if ( ! function_exists( 'sitepoint_base_entry_meta' ) ) { | |
function sitepoint_base_entry_meta() { | |
// Return the Tags as a list | |
+ // Translators: Tag separator | |
$tag_list = ""; | |
if ( get_the_tag_list() ) { | |
$tag_list = get_the_tag_list( '<span class="post-tags">', esc_html__( ' ', 'sitepoint-base' ), '</span>' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment