WordPress.org

Plugin Directory

Changeset 618811


Ignore:
Timestamp:
10/29/12 20:18:54 (18 months ago)
Author:
jblz
Message:

Jetpack: Avoid sending PHP notice when checking $GLOBALSHTTP_RAW_POST_DATA? if it's not set. When WP_DEBUG is on, Notices kill oauth negotiation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/class.jetpack-signature.php

    r610170 r618811  
    4343            $body = $override['body']; 
    4444        } else if ( 'POST' == strtoupper( $_SERVER['REQUEST_METHOD'] ) ) { 
    45             $body = $GLOBALS['HTTP_RAW_POST_DATA']; 
     45            $body = isset( $GLOBALS['HTTP_RAW_POST_DATA'] ) ? $GLOBALS['HTTP_RAW_POST_DATA'] : null; 
    4646        } else { 
    4747            $body = null; 
Note: See TracChangeset for help on using the changeset viewer.