Make WordPress Core


Ignore:
Timestamp:
01/03/2024 09:57:32 PM (13 months ago)
Author:
hellofromTonya
Message:

Docs: Replace "sanity" with "confidence" for inclusive language.

The phrase "sanity check" unnecessarily references mental health. It's an old phrase used to denote an extra step in verifying code works as expected.

“The WordPress open source community cares about diversity. We strive to maintain a welcoming environment where everyone can feel included.”

While "sanity check" is a well-known phrase with a specific meaning, "confidence check" is a direct replacement that is more clear of its intent while being more inclusive.

Words matter.

Follow-up to [49216], [46271], [40583], [38832], [38637], [37409], [33359], [32162], [30346], [30345], [30238], [30055], [29902], [28763], [26141], [25002], [22227], [13428], [12148], [11025], [8927].

Props dartiss, hellofromTonya.
Fixes #60187.

File:
1 edited

Legend:

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

    r57131 r57239  
    42854285
    42864286/**
    4287  * Encodes a variable into JSON, with some sanity checks.
     4287 * Encodes a variable into JSON, with some confidence checks.
    42884288 *
    42894289 * @since 4.1.0
     
    43014301    $json = json_encode( $value, $flags, $depth );
    43024302
    4303     // If json_encode() was successful, no need to do more sanity checking.
     4303    // If json_encode() was successful, no need to do more confidence checking.
    43044304    if ( false !== $json ) {
    43054305        return $json;
     
    43164316
    43174317/**
    4318  * Performs sanity checks on data that shall be encoded to JSON.
     4318 * Performs confidence checks on data that shall be encoded to JSON.
    43194319 *
    43204320 * @ignore
Note: See TracChangeset for help on using the changeset viewer.