Permalink
Browse files

Change the logo anchor class to "site-logo-link", which is more consi…

…stent with core naming conventions. Fixes #12.
  • Loading branch information...
kwight committed Sep 26, 2014
1 parent c3e1e4a commit 5e84a5ea821f3b3612e6ad847d2f4de5ef4a4178
Showing with 3 additions and 3 deletions.
  1. +2 −2 inc/functions.php
  2. +1 −1 js/site-logo.js
View
@@ -61,7 +61,7 @@ function the_site_logo() {
// Bail if no logo is set. Leave a placeholder if we're in the Customizer, though (needed for the live preview).
if ( ! has_site_logo() ) {
if ( site_logo_is_customize_preview() ) {
printf( '<a href="%1$s" class="site-logo-anchor" style="display:none;"><img class="site-logo" data-size="%2$s" /></a>',
printf( '<a href="%1$s" class="site-logo-link" style="display:none;"><img class="site-logo" data-size="%2$s" /></a>',
esc_url( home_url( '/' ) ),
esc_attr( $size )
);
@@ -70,7 +70,7 @@ function the_site_logo() {
}
// We have a logo. Logo is go.
$html = sprintf( '<a href="%1$s" class="site-logo-anchor" rel="home">%2$s</a>',
$html = sprintf( '<a href="%1$s" class="site-logo-link" rel="home">%2$s</a>',
esc_url( home_url( '/' ) ),
wp_get_attachment_image(
$logo['id'],
View
@@ -4,7 +4,7 @@
function cacheSelectors() {
$body = $( 'body' );
$anchor = $( '.site-logo-anchor' );
$anchor = $( '.site-logo-link' );
$logo = $( '.site-logo' );
size = $logo.attr( 'data-size' );
}

0 comments on commit 5e84a5e

Please sign in to comment.