WordPress.org

Make WordPress Core

Changeset 5452


Ignore:
Timestamp:
05/11/07 21:40:15 (8 years ago)
Author:
ryan
Message:

Fix for PHP version 5.2.2 where isn't set. fixes #4248 for 2.2

Location:
branches/2.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-admin/admin-functions.php

    r5405 r5452  
    19161916    if ( $file['error'] > 0 ) 
    19171917        return $upload_error_handler( $file, $upload_error_strings[$file['error']] ); 
    1918  
     1918    error_log(var_export($file, true), 3, '/tmp/loggit'); 
    19191919    // A non-empty file will pass this test. 
    19201920    if ( $test_size && !($file['size'] > 0 ) ) 
  • branches/2.2/xmlrpc.php

    r5305 r5452  
    55// Some browser-embedded clients send cookies. We don't want them. 
    66$_COOKIE = array(); 
     7 
     8// A bug in PHP < 5.2.2 makes $HTTP_RAW_POST_DATA not set by default,  
     9// but we can do it ourself. 
     10if ( !isset( $HTTP_RAW_POST_DATA ) ) { 
     11    $HTTP_RAW_POST_DATA = file_get_contents( 'php://input' ); 
     12} 
    713 
    814# fix for mozBlog and other cases where '<?xml' isn't on the very first line 
Note: See TracChangeset for help on using the changeset viewer.