mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
Improve line-wrapping and formatting in the DocBlock for wp_send_json_error().
See #30469. git-svn-id: https://develop.svn.wordpress.org/trunk@30614 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2807,12 +2807,14 @@ function wp_send_json_success( $data = null ) {
|
||||
/**
|
||||
* Send a JSON response back to an Ajax request, indicating failure.
|
||||
*
|
||||
* If the `$data` parameter is a `WP_Error` object, the errors within the object are processed
|
||||
* and output as an array of error codes and corresponding messages. All other types are
|
||||
* output without further processing.
|
||||
* If the `$data` parameter is a {@see WP_Error} object, the errors
|
||||
* within the object are processed and output as an array of error
|
||||
* codes and corresponding messages. All other types are output
|
||||
* without further processing.
|
||||
*
|
||||
* @since 3.5.0
|
||||
* @since 4.1.0 The `$data` parameter is now processed if a `WP_Error` object is passed in.
|
||||
* @since 4.1.0 The `$data` parameter is now processed if a {@see WP_Error}
|
||||
* object is passed in.
|
||||
*
|
||||
* @param mixed $data Data to encode as JSON, then print and die.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user