Plugin Directory

Changeset 685040

Timestamp:
03/21/2013 04:06:50 AM (11 years ago)
Author:
jblz
Message:

Jetpack: Stats Module: Move the display:none CSS output to wp_head so it gets written inside the HEAD tag if the option to hide the stats smilie is active.
Style tags are not allowed inside the Body and cause validation errors.
props deanmarktaylor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/stats.php

    r674577 r685040  
    5353    add_action( 'wp_head', 'stats_admin_bar_head', 100 );
    5454
     55
     56
    5557    add_action( 'jetpack_admin_menu', 'stats_admin_menu' );
    5658
     
    156158    </script>
    157159END;
    158     if ( isset( $options['hide_smile'] ) && $options['hide_smile'] ) {
    159         $stats_footer .= "\n<style type='text/css'>img#wpstats{display:none}</style>";
    160     }
    161160}
    162161
     
    554553}
    555554
     555
     556
     557
     558
     559
     560
     561
     562
    556563function stats_admin_bar_head() {
    557564    if ( !stats_get_option( 'admin_bar' ) )
Note: See TracChangeset for help on using the changeset viewer.