| 1 | Index: wp-content/themes/twentytwelve/functions.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-content/themes/twentytwelve/functions.php (revision 23292) |
|---|
| 4 | +++ wp-content/themes/twentytwelve/functions.php (working copy) |
|---|
| 5 | @@ -41,6 +41,15 @@ |
|---|
| 6 | * |
|---|
| 7 | * @since Twenty Twelve 1.0 |
|---|
| 8 | */ |
|---|
| 9 | +function my_init() { |
|---|
| 10 | + if (is_admin()) { //this is a really bad idea |
|---|
| 11 | + // comment out the next two lines to load the local copy of jQuery |
|---|
| 12 | + wp_deregister_script('jquery'); |
|---|
| 13 | + wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', false, '1.3.2'); |
|---|
| 14 | + wp_enqueue_script('jquery'); |
|---|
| 15 | + } |
|---|
| 16 | +} |
|---|
| 17 | + |
|---|
| 18 | function twentytwelve_setup() { |
|---|
| 19 | /* |
|---|
| 20 | * Makes Twenty Twelve available for translation. |
|---|
| 21 | @@ -49,8 +58,10 @@ |
|---|
| 22 | * If you're building a theme based on Twenty Twelve, use a find and replace |
|---|
| 23 | * to change 'twentytwelve' to the name of your theme in all the template files. |
|---|
| 24 | */ |
|---|
| 25 | - load_theme_textdomain( 'twentytwelve', get_template_directory() . '/languages' ); |
|---|
| 26 | + add_action('init', 'my_init'); |
|---|
| 27 | |
|---|
| 28 | + load_theme_textdomain( 'twentytwelve', get_template_directory() . '/languages' ); |
|---|
| 29 | + |
|---|
| 30 | // This theme styles the visual editor with editor-style.css to match the theme style. |
|---|
| 31 | add_editor_style(); |
|---|
| 32 | |
|---|