Make WordPress Core


Ignore:
Timestamp:
07/02/2008 11:07:56 PM (17 years ago)
Author:
mdawaffe
Message:

crazyhorse: merge with log:trunk@8151:8240

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/crazyhorse/wp-includes/script-loader.php

    r8224 r8242  
    88
    99function wp_default_scripts( &$scripts ) {
    10     $scripts->base_url = site_url();
     10    if (!$guessurl = site_url())
     11        $guessurl = wp_guess_url();
     12    $scripts->base_url = $guessurl;
    1113    $scripts->default_version = get_bloginfo( 'version' );
    1214
     
    3335    $scripts->add( 'editor', false, $visual_editor, '20080321' );
    3436
    35     $scripts->add( 'editor_functions', '/wp-admin/js/editor.js', false, '20080325' );
     37    $scripts->add( 'editor_functions', '/wp-admin/js/editor.js', false, '20080701' );
    3638
    3739    // Modify this version when tinyMCE plugins are changed.
    38     $mce_version = apply_filters('tiny_mce_version', '20080618');
     40    $mce_version = apply_filters('tiny_mce_version', '20080701');
    3941    $scripts->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_config.php', array('editor_functions'), $mce_version );
    4042
     
    6971    $scripts->add( 'jquery-color', '/wp-includes/js/jquery/jquery.color.js', array('jquery'), '2.0-4561');
    7072    $scripts->add( 'interface', '/wp-includes/js/jquery/interface.js', array('jquery'), '1.2' );
    71     $scripts->add( 'suggest', '/wp-includes/js/jquery/suggest.js', array('jquery'), '1.1');
     73    $scripts->add( 'suggest', '/wp-includes/js/jquery/suggest.js', array('jquery'), '1.1b');
    7274    $scripts->add( 'schedule', '/wp-includes/js/jquery/jquery.schedule.js', array('jquery'), '20');
    7375    $scripts->add( 'thickbox', '/wp-includes/js/thickbox/thickbox.js', array('jquery'), '3.1-20080430');
     
    99101    ) );
    100102
    101     $scripts->add( 'jquery-ui-core', '/wp-includes/js/jquery/ui.core.js', array('jquery'), '1.5' );
    102     $scripts->add( 'jquery-ui-tabs', '/wp-includes/js/jquery/ui.tabs.js', array('jquery-ui-core'), '1.5' );
    103     $scripts->add( 'jquery-ui-sortable', '/wp-includes/js/jquery/ui.sortable.js', array('jquery-ui-core'), '1.5' );
     103    $scripts->add( 'jquery-ui-core', '/wp-includes/js/jquery/ui.core.js', array('jquery'), '1.5.1' );
     104    $scripts->add( 'jquery-ui-tabs', '/wp-includes/js/jquery/ui.tabs.js', array('jquery-ui-core'), '1.5.1' );
     105    $scripts->add( 'jquery-ui-sortable', '/wp-includes/js/jquery/ui.sortable.js', array('jquery-ui-core'), '1.5.1' );
    104106
    105107    if ( is_admin() ) {
     
    158160        ) );
    159161        $scripts->add( 'admin-gallery', '/wp-admin/js/gallery.js', array( 'jquery-ui-sortable' ), '20080520' );
    160         $scripts->add( 'media-upload', '/wp-admin/js/media-upload.js', array( 'thickbox' ), '20080523' );
     162        $scripts->add( 'media-upload', '/wp-admin/js/media-upload.js', array( 'thickbox' ), '20080701' );
    161163        $scripts->localize( 'upload', 'uploadL10n', array(
    162164            'browseTitle' => attribute_escape(__('Browse your files')),
     
    199201        ));
    200202       
    201         $scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20080523' );
     203        $scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20080625' );
    202204    }
    203205}
    204206
    205207function wp_default_styles( &$styles ) {
    206     $styles->base_url = site_url();
     208    if (!$guessurl = site_url())
     209        $guessurl = wp_guess_url();
     210    $styles->base_url = $guessurl;
    207211    $styles->default_version = get_bloginfo( 'version' );
    208212    $styles->text_direction = 'rtl' == get_bloginfo( 'text_direction' ) ? 'rtl' : 'ltr';
Note: See TracChangeset for help on using the changeset viewer.