WordPress.org

Make WordPress Core

Changeset 44921


Ignore:
Timestamp:
03/17/2019 01:44:20 AM (11 months ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for wp_die() handlers.

See #46543.

File:
1 edited

Legend:

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

    r44910 r44921  
    29222922
    29232923/**
    2924  * Kill WordPress execution and display HTML message with error message.
     2924 * Kills WordPress execution and displays HTML page with an error message.
    29252925 *
    29262926 * This function complements the `die()` PHP function. The difference is that
     
    30143014
    30153015/**
    3016  * Kills WordPress execution and display HTML message with error message.
    3017  *
    3018  * This is the default handler for wp_die if you want a custom one for your
    3019  * site then you can overload using the {@see 'wp_die_handler'} filter in wp_die().
     3016 * Kills WordPress execution and displays HTML page with an error message.
     3017 *
     3018 * This is the default handler for wp_die(). If you want a custom one,
     3019 * you can override this using the {@see 'wp_die_handler'} filter in wp_die().
    30203020 *
    30213021 * @since 3.0.0
     
    32113211
    32123212/**
    3213  * Kill WordPress execution and display JSON message with error message.
    3214  *
    3215  * This is the handler for wp_die when processing JSON requests.
     3213 * Kills WordPress execution and displays JSON response with an error message.
     3214 *
     3215 * This is the handler for wp_die() when processing JSON requests.
    32163216 *
    32173217 * @since 5.1.0
     
    32493249
    32503250/**
    3251  * Kill WordPress execution and display XML message with error message.
    3252  *
    3253  * This is the handler for wp_die when processing XMLRPC requests.
     3251 * Kills WordPress execution and displays XML response with an error message.
     3252 *
     3253 * This is the handler for wp_die() when processing XMLRPC requests.
    32543254 *
    32553255 * @since 3.2.0
     
    32813281
    32823282/**
    3283  * Kill WordPress ajax execution.
    3284  *
    3285  * This is the handler for wp_die when processing Ajax requests.
     3283 * Kills WordPress execution and displays Ajax response with an error message.
     3284 *
     3285 * This is the handler for wp_die() when processing Ajax requests.
    32863286 *
    32873287 * @since 3.4.0
     
    33233323
    33243324/**
    3325  * Kill WordPress execution.
    3326  *
    3327  * This is the handler for wp_die when processing APP requests.
     3325 * Kills WordPress execution and displays an error message.
     3326 *
     3327 * This is the handler for wp_die() when processing APP requests.
    33283328 *
    33293329 * @since 3.4.0
     
    33513351
    33523352/**
    3353  * Processes arguments passed to {@see wp_die()} consistently for its handlers.
     3353 * Processes arguments passed to wp_die() consistently for its handlers.
    33543354 *
    33553355 * @since 5.1.0
Note: See TracChangeset for help on using the changeset viewer.