Make WordPress Core

Ticket #22896: brokentheme.diff

File brokentheme.diff, 1.2 KB (added by adamsilverstein, 12 years ago)
  • wp-content/themes/twentytwelve/functions.php

     
    4141 *
    4242 * @since Twenty Twelve 1.0
    4343 */
     44function 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
    4453function twentytwelve_setup() {
    4554        /*
    4655         * Makes Twenty Twelve available for translation.
     
    4958         * If you're building a theme based on Twenty Twelve, use a find and replace
    5059         * to change 'twentytwelve' to the name of your theme in all the template files.
    5160         */
    52         load_theme_textdomain( 'twentytwelve', get_template_directory() . '/languages' );
     61    add_action('init', 'my_init');
    5362
     63    load_theme_textdomain( 'twentytwelve', get_template_directory() . '/languages' );
     64
    5465        // This theme styles the visual editor with editor-style.css to match the theme style.
    5566        add_editor_style();
    5667