Ticket #22896: brokentheme.diff
File brokentheme.diff, 1.2 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentytwelve/functions.php
41 41 * 42 42 * @since Twenty Twelve 1.0 43 43 */ 44 function my_init() { 45 if (is_admin()) { //this is a really bad idea 46 // comment out the next two lines to load the local copy of jQuery 47 wp_deregister_script('jquery'); 48 wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', false, '1.3.2'); 49 wp_enqueue_script('jquery'); 50 } 51 } 52 44 53 function twentytwelve_setup() { 45 54 /* 46 55 * Makes Twenty Twelve available for translation. … … 49 58 * If you're building a theme based on Twenty Twelve, use a find and replace 50 59 * to change 'twentytwelve' to the name of your theme in all the template files. 51 60 */ 52 load_theme_textdomain( 'twentytwelve', get_template_directory() . '/languages');61 add_action('init', 'my_init'); 53 62 63 load_theme_textdomain( 'twentytwelve', get_template_directory() . '/languages' ); 64 54 65 // This theme styles the visual editor with editor-style.css to match the theme style. 55 66 add_editor_style(); 56 67