Make WordPress Core

Changeset 30614


Ignore:
Timestamp:
11/28/2014 11:38:59 AM (11 years ago)
Author:
DrewAPicture
Message:

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

See #30469.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r30613 r30614  
    28082808 * Send a JSON response back to an Ajax request, indicating failure.
    28092809 *
    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.
    28132814 *
    28142815 * @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.
    28162818 *
    28172819 * @param mixed $data Data to encode as JSON, then print and die.
Note: See TracChangeset for help on using the changeset viewer.