Changeset 46206 for trunk/src/wp-includes/rest-api/class-wp-rest-server.php
- Timestamp:
- 09/20/2019 08:07:28 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r46191 r46206 1002 1002 */ 1003 1003 protected function get_json_last_error() { 1004 // See https://core.trac.wordpress.org/ticket/27799.1005 if ( ! function_exists( 'json_last_error' ) ) {1006 return false;1007 }1008 1009 1004 $last_error_code = json_last_error(); 1010 1005 1011 if ( ( defined( 'JSON_ERROR_NONE' ) && JSON_ERROR_NONE === $last_error_code )|| empty( $last_error_code ) ) {1006 if ( JSON_ERROR_NONE === $last_error_code || empty( $last_error_code ) ) { 1012 1007 return false; 1013 1008 }
Note: See TracChangeset
for help on using the changeset viewer.