Make WordPress Core


Ignore:
Timestamp:
07/02/2022 06:27:44 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add @since tags for wp_die() handlers in the PHPUnit test suite.

Follow-up to [289/tests], [28797], [41966], [53634].

See #55652, #55646.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/functions.php

    r53634 r53635  
    153153 * Handles the WP die handler by outputting the given values as text.
    154154 *
     155 * @since UT (3.7.0)
     156 * @since 6.1.0 The `$message` parameter can accept a `WP_Error` object.
     157 *
    155158 * @param string|WP_Error $message Error message or WP_Error object.
    156159 * @param string          $title   Error title.
     
    167170/**
    168171 * Disables the WP die handler.
     172 *
     173 * @since UT (3.7.0)
    169174 */
    170175function _disable_wp_die() {
     
    174179/**
    175180 * Enables the WP die handler.
     181 *
     182 * @since UT (3.7.0)
    176183 */
    177184function _enable_wp_die() {
     
    182189 * Returns the die handler.
    183190 *
     191 * @since UT (3.7.0)
     192 *
    184193 * @return string The die handler.
    185194 */
     
    191200 * Returns the die handler.
    192201 *
     202 * @since 4.9.0
     203 *
    193204 * @return string The die handler.
    194205 */
     
    199210/**
    200211 * Dies without an exit.
     212 *
     213 * @since 4.0.0
     214 * @since 6.1.0 The `$message` parameter can accept a `WP_Error` object.
    201215 *
    202216 * @param string|WP_Error $message Error message or WP_Error object.
     
    228242/**
    229243 * Dies with an exit.
     244 *
     245 * @since 4.9.0
     246 * @since 6.1.0 The `$message` parameter can accept a `WP_Error` object.
    230247 *
    231248 * @param string|WP_Error $message Error message or WP_Error object.
Note: See TracChangeset for help on using the changeset viewer.