Changeset 4567
- Timestamp:
- 12/22/2016 01:57:11 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/standalone/class-plugins-info-api.php
r4566 r4567 246 246 case 'json' : 247 247 case 'jsonp' : 248 $json = json_encode( $response ); 248 if ( ! function_exists( 'wp_json_encode' ) && defined( 'WPORGAPIPATH' ) ) { 249 require WPORGAPIPATH . '/includes/wp-json-encode.php'; 250 } 251 $json = function_exists( 'wp_json_encode' ) ? wp_json_encode( $response ) : json_encode( $response ); 249 252 if ( 'jsonp' == $this->format ) { 250 253 echo "{$this->jsonp}($json)";
Note: See TracChangeset
for help on using the changeset viewer.