Use get_option instead of get_bloginfo to retrieve siteurl cause the two aren't the same for some mystical reason.
git-svn-id: http://svn.automattic.com/wordpress/trunk@4107 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f605f4ffd1
commit
b8025e74a8
|
@ -50,7 +50,7 @@ function autosave_update_post_ID() {
|
|||
nonceAjax.setVar("post_ID", res);
|
||||
nonceAjax.setVar("cookie", document.cookie);
|
||||
nonceAjax.setVar("post_type", $('post_type').value);
|
||||
nonceAjax.requestFile = "<?php echo get_bloginfo('siteurl'); ?>/wp-admin/admin-ajax.php";
|
||||
nonceAjax.requestFile = "<?php echo get_option('siteurl'); ?>/wp-admin/admin-ajax.php";
|
||||
nonceAjax.onCompletion = autosave_update_nonce;
|
||||
nonceAjax.method = "POST";
|
||||
nonceAjax.runAJAX();
|
||||
|
@ -119,7 +119,7 @@ function autosave() {
|
|||
autosaveAjax.setVar("content", form.content.value);
|
||||
}
|
||||
|
||||
autosaveAjax.requestFile = "<?php echo get_bloginfo('siteurl'); ?>/wp-admin/admin-ajax.php";
|
||||
autosaveAjax.requestFile = "<?php echo get_option('siteurl'); ?>/wp-admin/admin-ajax.php";
|
||||
autosaveAjax.method = "POST";
|
||||
autosaveAjax.element = null;
|
||||
autosaveAjax.onLoading = autosave_loading;
|
||||
|
|
|
@ -18,7 +18,7 @@ class WP_Scripts {
|
|||
$this->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_gzip.php', false, '08152006' );
|
||||
$this->add( 'wp_tiny_mce', '/wp-includes/js/tinymce/tiny_mce_config.php', array('tiny_mce'), '04162006' );
|
||||
$this->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.5.0');
|
||||
$this->add( 'autosave', '/wp-includes/js/autosave.js.php', array('prototype', 'sack'), '4102');
|
||||
$this->add( 'autosave', '/wp-includes/js/autosave.js.php', array('prototype', 'sack'), '4107');
|
||||
if ( is_admin() ) {
|
||||
$this->add( 'dbx-admin-key', '/wp-admin/dbx-admin-key-js.php', array('dbx'), '3651' );
|
||||
$this->add( 'listman', '/wp-admin/list-manipulation-js.php', array('sack', 'fat'), '4042' ); // Make changeset # the correct one
|
||||
|
|
Loading…
Reference in New Issue