Improve line-wrapping and formatting in the DocBlock for `wp_send_json_error()`.

See #30469.

Built from https://develop.svn.wordpress.org/trunk@30614


git-svn-id: http://core.svn.wordpress.org/trunk@30604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2014-11-28 11:39:22 +00:00
parent 68432b0cd1
commit a1f244d454
2 changed files with 7 additions and 5 deletions

View File

@ -2807,12 +2807,14 @@ function wp_send_json_success( $data = null ) {
/** /**
* Send a JSON response back to an Ajax request, indicating failure. * 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 * If the `$data` parameter is a {@see WP_Error} object, the errors
* and output as an array of error codes and corresponding messages. All other types are * within the object are processed and output as an array of error
* output without further processing. * codes and corresponding messages. All other types are output
* without further processing.
* *
* @since 3.5.0 * @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. * @param mixed $data Data to encode as JSON, then print and die.
*/ */

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.1-beta2-30613'; $wp_version = '4.1-beta2-30614';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.