Twenty Fifteen: spacing and code style cleanup. See #30133.
git-svn-id: https://develop.svn.wordpress.org/trunk@30045 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
01cd41c3af
commit
0ba2f26de9
@ -159,10 +159,10 @@ function twentyfifteen_get_color_scheme() {
|
|||||||
$color_schemes = twentyfifteen_get_color_schemes();
|
$color_schemes = twentyfifteen_get_color_schemes();
|
||||||
|
|
||||||
if ( array_key_exists( $color_scheme_option, $color_schemes ) ) {
|
if ( array_key_exists( $color_scheme_option, $color_schemes ) ) {
|
||||||
return $color_schemes[ $color_scheme_option ]['colors'];
|
return $color_schemes[$color_scheme_option]['colors'];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $color_schemes[ 'default' ]['colors'];
|
return $color_schemes['default']['colors'];
|
||||||
}
|
}
|
||||||
endif; // twentyfifteen_get_color_scheme
|
endif; // twentyfifteen_get_color_scheme
|
||||||
|
|
||||||
|
@ -62,11 +62,11 @@ function twentyfifteen_post_nav() {
|
|||||||
$prev_class = $next_class = '';
|
$prev_class = $next_class = '';
|
||||||
|
|
||||||
if ( $previous && has_post_thumbnail( $previous->ID ) ) {
|
if ( $previous && has_post_thumbnail( $previous->ID ) ) {
|
||||||
$prev_class = " has-post-thumbnail";
|
$prev_class = ' has-post-thumbnail';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $next && has_post_thumbnail( $next->ID ) ) {
|
if ( $next && has_post_thumbnail( $next->ID ) ) {
|
||||||
$next_class = " has-post-thumbnail";
|
$next_class = ' has-post-thumbnail';
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
url = $( '.nav-next a' ).attr( 'href' );
|
url = $( '.nav-next a' ).attr( 'href' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( url && ( !$( 'textarea, input' ).is( ':focus' ) ) ) {
|
if ( url && ( ! $( 'textarea, input' ).is( ':focus' ) ) ) {
|
||||||
window.location = url;
|
window.location = url;
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user