WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/27/2008 05:46:01 PM (14 years ago)
Author:
ryan
Message:

First cut and better admin SSL support. see #7001

File:
1 edited

Legend:

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

    r7989 r7998  
    88
    99function wp_default_scripts( &$scripts ) {
    10     $scripts->base_url = get_option( 'siteurl' );
     10    $scripts->base_url = site_url();
    1111    $scripts->default_version = get_bloginfo( 'version' );
    1212
     
    5151    $scripts->add( 'wp-lists', '/wp-includes/js/wp-lists.js', array('wp-ajax-response'), '20080411' );
    5252    $scripts->localize( 'wp-lists', 'wpListL10n', array(
    53         'url' => get_option( 'siteurl' ) . '/wp-admin/admin-ajax.php'
     53        'url' => admin_url('admin-ajax.php')
    5454    ) );
    5555
     
    130130        $scripts->add( 'postbox', '/wp-admin/js/postbox.js', array('jquery'), '20080128' );
    131131        $scripts->localize( 'postbox', 'postboxL10n', array(
    132             'requestFile' => get_option( 'siteurl' ) . '/wp-admin/admin-ajax.php',
     132            'requestFile' => admin_url('admin-ajax.php'),
    133133        ) );
    134134        $scripts->add( 'slug', '/wp-admin/js/slug.js', array('jquery'), '20080208' );
    135135        $scripts->localize( 'slug', 'slugL10n', array(
    136             'requestFile' => get_option( 'siteurl' ) . '/wp-admin/admin-ajax.php',
     136            'requestFile' => admin_url('admin-ajax.php'),
    137137            'save' => __('Save'),
    138138            'cancel' => __('Cancel'),
     
    205205
    206206function wp_default_styles( &$styles ) {
    207     $styles->base_url = get_option( 'siteurl' );
     207    $styles->base_url = site_url();
    208208    $styles->default_version = get_bloginfo( 'version' );
    209209    $styles->text_direction = 'rtl' == get_bloginfo( 'text_direction' ) ? 'rtl' : 'ltr';
     
    259259        'previewPageText' => __('Preview this Page'),
    260260        'previewPostText' => __('Preview this Post'),
    261         'requestFile' => get_option( 'siteurl' ) . '/wp-admin/admin-ajax.php',
     261        'requestFile' => admin_url('admin-ajax.php'),
    262262        'savingText' => __('Saving Draft…')
    263263    ) );
Note: See TracChangeset for help on using the changeset viewer.