Changeset 30614
- Timestamp:
- 11/28/2014 11:38:59 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r30613 r30614 2808 2808 * Send a JSON response back to an Ajax request, indicating failure. 2809 2809 * 2810 * If the `$data` parameter is a `WP_Error` object, the errors within the object are processed 2811 * and output as an array of error codes and corresponding messages. All other types are 2812 * output without further processing. 2810 * If the `$data` parameter is a {@see WP_Error} object, the errors 2811 * within the object are processed and output as an array of error 2812 * codes and corresponding messages. All other types are output 2813 * without further processing. 2813 2814 * 2814 2815 * @since 3.5.0 2815 * @since 4.1.0 The `$data` parameter is now processed if a `WP_Error` object is passed in. 2816 * @since 4.1.0 The `$data` parameter is now processed if a {@see WP_Error} 2817 * object is passed in. 2816 2818 * 2817 2819 * @param mixed $data Data to encode as JSON, then print and die.
Note: See TracChangeset
for help on using the changeset viewer.