Changeset 4107

Show
Ignore:
Timestamp:
08/22/06 05:57:28 (2 years ago)
Author:
ryan
Message:

Use get_option instead of get_bloginfo to retrieve siteurl cause the two aren't the same for some mystical reason.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/js/autosave.js.php

    r4103 r4107  
    5151        nonceAjax.setVar("cookie", document.cookie); 
    5252        nonceAjax.setVar("post_type", $('post_type').value); 
    53         nonceAjax.requestFile = "<?php echo get_bloginfo('siteurl'); ?>/wp-admin/admin-ajax.php"; 
     53        nonceAjax.requestFile = "<?php echo get_option('siteurl'); ?>/wp-admin/admin-ajax.php"; 
    5454        nonceAjax.onCompletion = autosave_update_nonce; 
    5555        nonceAjax.method = "POST"; 
     
    120120    } 
    121121         
    122     autosaveAjax.requestFile = "<?php echo get_bloginfo('siteurl'); ?>/wp-admin/admin-ajax.php"; 
     122    autosaveAjax.requestFile = "<?php echo get_option('siteurl'); ?>/wp-admin/admin-ajax.php"; 
    123123    autosaveAjax.method = "POST"; 
    124124    autosaveAjax.element = null; 
  • trunk/wp-includes/script-loader.php

    r4105 r4107  
    1919        $this->add( 'wp_tiny_mce', '/wp-includes/js/tinymce/tiny_mce_config.php', array('tiny_mce'), '04162006' ); 
    2020        $this->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.5.0'); 
    21         $this->add( 'autosave', '/wp-includes/js/autosave.js.php', array('prototype', 'sack'), '4102'); 
     21        $this->add( 'autosave', '/wp-includes/js/autosave.js.php', array('prototype', 'sack'), '4107'); 
    2222        if ( is_admin() ) { 
    2323            $this->add( 'dbx-admin-key', '/wp-admin/dbx-admin-key-js.php', array('dbx'), '3651' );