WordPress.org

Make WordPress Core

Changeset 11904


Ignore:
Timestamp:
09/08/2009 03:22:42 PM (9 years ago)
Author:
ryan
Message:

Pass logged_in cookie to async-upload. Props nbachiyski. fixes #10739

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/async-upload.php

    r11421 r11904  
    1919elseif ( empty($_COOKIE[AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
    2020    $_COOKIE[AUTH_COOKIE] = $_REQUEST['auth_cookie'];
     21if ( empty($_COOKIE[LOGGED_IN_COOKIE]) && !empty($_REQUEST['logged_in_cookie']) )
     22    $_COOKIE[LOGGED_IN_COOKIE] = $_REQUEST['logged_in_cookie'];
    2123unset($current_user);
    2224require_once('admin.php');
  • trunk/wp-admin/includes/media.php

    r11896 r11904  
    13321332                "post_id" : "<?php echo $post_id; ?>",
    13331333                "auth_cookie" : "<?php if ( is_ssl() ) echo $_COOKIE[SECURE_AUTH_COOKIE]; else echo $_COOKIE[AUTH_COOKIE]; ?>",
     1334                "logged_in_cookie": "<?php echo $_COOKIE[LOGGED_IN_COOKIE]; ?>",
    13341335                "_wpnonce" : "<?php echo wp_create_nonce('media-form'); ?>",
    13351336                "type" : "<?php echo $type; ?>",
Note: See TracChangeset for help on using the changeset viewer.