Twenty Twelve: hide author name on single author blogs, using `is_multi_author()` -- fixes #21759, props iamtakashi.
git-svn-id: http://core.svn.wordpress.org/trunk@21761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6b818097d2
commit
083b1fe30e
|
@ -336,11 +336,11 @@ function twentytwelve_entry_meta() {
|
||||||
|
|
||||||
// Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.
|
// Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.
|
||||||
if ( $tag_list ) {
|
if ( $tag_list ) {
|
||||||
$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s by %4$s.', 'twentytwelve' );
|
$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
|
||||||
} elseif ( $categories_list ) {
|
} elseif ( $categories_list ) {
|
||||||
$utility_text = __( 'This entry was posted in %1$s on %3$s by %4$s.', 'twentytwelve' );
|
$utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
|
||||||
} else {
|
} else {
|
||||||
$utility_text = __( 'This entry was posted on %3$s by %4$s.', 'twentytwelve' );
|
$utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
|
||||||
}
|
}
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
|
@ -386,6 +386,9 @@ function twentytwelve_body_class( $classes ) {
|
||||||
if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) )
|
if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) )
|
||||||
$classes[] = 'custom-font-enabled';
|
$classes[] = 'custom-font-enabled';
|
||||||
|
|
||||||
|
if ( ! is_multi_author() )
|
||||||
|
$classes[] = 'single-author';
|
||||||
|
|
||||||
return $classes;
|
return $classes;
|
||||||
}
|
}
|
||||||
add_filter( 'body_class', 'twentytwelve_body_class' );
|
add_filter( 'body_class', 'twentytwelve_body_class' );
|
||||||
|
|
Loading…
Reference in New Issue