WordPress.org

Make WordPress Core

Ticket #21751: 21751.diff

File 21751.diff, 1.3 KB (added by obenland, 20 months ago)
  • wp-content/themes/twentytwelve/functions.php

     
    102102 
    103103        /* 
    104104         * Loads our special font CSS file. 
     105         *  
     106         * The use of Open Sans by default is localized. For languages that use 
     107         * characters not supported by the font, the font will not be used. 
    105108         * 
    106109         * To disable in a child theme, use wp_dequeue_style() 
    107110         * function mytheme_dequeue_fonts() { 
     
    109112         * } 
    110113         * add_action( 'wp_enqueue_scripts', 'mytheme_dequeue_fonts', 11 ); 
    111114         */ 
    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 ); 
     115        /* translators: If there are characters in you language, that are not 
     116           supported by Open Sans, enter 'no'. Otherwise enter 'yes'. Do not translate into your own language. */ 
     117        if ( 'yes' == _x( 'yes', 'Use Open Sans: yes or no', 'twentytwelve' ) ) { 
     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.