Make WordPress Core


Ignore:
Timestamp:
01/03/2024 09:57:32 PM (11 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/class-wpdb.php

    r57089 r57239  
    155155
    156156    /**
    157      * Cached column info, for sanity checking data before inserting.
     157     * Cached column info, for confidence checking data before inserting.
    158158     *
    159159     * @since 4.2.0
     
    173173
    174174    /**
    175      * Whether text fields in the current query need to be sanity checked.
     175     * Whether text fields in the current query need to be confidence checked.
    176176     *
    177177     * @since 4.2.0
     
    19281928            $this->result = null;
    19291929
    1930             // Sanity check before using the handle.
     1930            // Confidence check before using the handle.
    19311931            if ( empty( $this->dbh ) || ! ( $this->dbh instanceof mysqli ) ) {
    19321932                return;
     
    35173517        }
    35183518
    3519         // If any of the columns don't have one of these collations, it needs more sanity checking.
     3519        // If any of the columns don't have one of these collations, it needs more confidence checking.
    35203520        $safe_collations = array(
    35213521            'utf8_bin',
Note: See TracChangeset for help on using the changeset viewer.