- Timestamp:
- 09/18/2017 07:53:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/core/browse-happy/1.0/index.php
r82 r5934 12 12 } 13 13 14 if ( empty( $_REQUEST['useragent'] ) ) 14 if ( empty( $_REQUEST['useragent'] ) ) { 15 15 return; 16 } 16 17 17 18 $user_agent = $_REQUEST['useragent']; … … 24 25 } 25 26 26 if ( $jsonp ) 27 if ( $jsonp ) { 27 28 echo $jsonp.'('.json_encode($data).')'; 28 elseif ( defined( 'JSON_RESPONSE' ) ) 29 } elseif ( defined( 'JSON_RESPONSE' ) ) { 29 30 echo json_encode( $data ); 30 else 31 } else { 31 32 echo serialize( $data ); 33 } 32 34 33 35 function bh_record_data( $ua, $data ) {
Note: See TracChangeset
for help on using the changeset viewer.