WordPress.org

Make WordPress Core

Ticket #21230: 21230.2.diff

File 21230.2.diff, 1.0 KB (added by obenland, 22 months ago)

Namespace script and style handles

  • wp-content/themes/twentytwelve/functions.php

     
    103103         * JavaScript for handling navigation menus and the resized 
    104104         * styles for small screen sizes. 
    105105         */ 
    106         wp_enqueue_script( 'navigation', get_template_directory_uri() . '/js/theme.js', array( 'jquery' ), '20130320', true ); 
     106        wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/theme.js', array( 'jquery' ), '20130320', true ); 
    107107 
    108108        /** 
    109109         * Load special font CSS file. 
     
    111111         */ 
    112112        $options = $twentytwelve_options->get_theme_options(); 
    113113        if ( $options['enable_fonts'] ) 
    114                 wp_enqueue_style( 'fonts', 'http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' ); 
     114                wp_enqueue_style( 'twentytwelve-fonts', 'http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' ); 
    115115 
    116116        /** 
    117117         * Load our main CSS file.