WordPress 4.5
[autoinstalls/wordpress.git] / wp-content / themes / twentyfifteen / inc / template-tags.php
index 0a617c098f486ae571cc2cf0192a52d81dd5c19e..fb6004ec38bf4645aa8168b5bbd0a5b6c8ef58bc 100644 (file)
@@ -119,7 +119,8 @@ function twentyfifteen_entry_meta() {
 
        if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
                echo '<span class="comments-link">';
-               comments_popup_link( __( 'Leave a comment', 'twentyfifteen' ), __( '1 Comment', 'twentyfifteen' ), __( '% Comments', 'twentyfifteen' ) );
+               /* translators: %s: post title */
+               comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>', 'twentyfifteen' ), get_the_title() ) );
                echo '</span>';
        }
 }
@@ -240,3 +241,18 @@ function twentyfifteen_excerpt_more( $more ) {
 }
 add_filter( 'excerpt_more', 'twentyfifteen_excerpt_more' );
 endif;
+
+if ( ! function_exists( 'twentyfifteen_the_custom_logo' ) ) :
+/**
+ * Displays the optional custom logo.
+ *
+ * Does nothing if the custom logo is not available.
+ *
+ * @since Twenty Fifteen 1.5
+ */
+function twentyfifteen_the_custom_logo() {
+       if ( function_exists( 'the_custom_logo' ) ) {
+               the_custom_logo();
+       }
+}
+endif;