Make WordPress Core

Ticket #21751: 21751.2.diff

File 21751.2.diff, 1.6 KB (added by SergeyBiryukov, 12 years ago)
  • wp-content/themes/twentytwelve/functions.php

     
    103103        /*
    104104         * Loads our special font CSS file.
    105105         *
    106          * To disable in a child theme, use wp_dequeue_style()
    107          * function mytheme_dequeue_fonts() {
    108          *     wp_dequeue_style( 'twentytwelve-fonts' );
    109          * }
     106         * The use of Open Sans by default is localized. For languages that use
     107         * characters not supported by the font, the font can be disabled.
     108         *
     109         * To disable in a child theme, use wp_dequeue_style()
     110         * function mytheme_dequeue_fonts() {
     111         *     wp_dequeue_style( 'twentytwelve-fonts' );
     112         * }
    110113         * add_action( 'wp_enqueue_scripts', 'mytheme_dequeue_fonts', 11 );
    111          */
    112         $protocol = is_ssl() ? 'https' : 'http';
    113         wp_enqueue_style( 'twentytwelve-fonts', "$protocol://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700", array(), null );
     114         */
     115        /* translators: If there are characters in your language that are not supported by Open Sans,
     116           enter 'disable-open-sans'. Otherwise enter 'enable-open-sans'. Do not translate into your own language. */
     117        if ( strpos( _x( 'enable-open-sans', 'Open Sans font: enable or disable', 'twentytwelve' ), 'disable' ) === false ) {
     118                $protocol = is_ssl() ? 'https' : 'http';
     119                wp_enqueue_style( 'twentytwelve-fonts', "$protocol://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700", array(), null );
     120        }
    114121
    115122        /*
    116123         * Loads our main stylesheet.