mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 20:58:55 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@57239 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1022,7 +1022,7 @@ class Tests_DB_Charset extends WP_UnitTestCase {
|
||||
$table_name = 'table_collation_check';
|
||||
$data = array(
|
||||
'utf8_bin' => array(
|
||||
// utf8_bin tables don't need extra sanity checking.
|
||||
// utf8_bin tables don't need extra confidence checking.
|
||||
'create' => '( a VARCHAR(50) COLLATE utf8_bin )',
|
||||
'expected' => true,
|
||||
),
|
||||
@@ -1037,13 +1037,13 @@ class Tests_DB_Charset extends WP_UnitTestCase {
|
||||
'expected' => false,
|
||||
),
|
||||
'utf8_bin + big5_chinese_ci' => array(
|
||||
// utf8_bin tables don't need extra sanity checking,
|
||||
// utf8_bin tables don't need extra confidence checking,
|
||||
// except for when they're not just utf8_bin.
|
||||
'create' => '( a VARCHAR(50) COLLATE utf8_bin, b VARCHAR(50) COLLATE big5_chinese_ci )',
|
||||
'expected' => false,
|
||||
),
|
||||
'utf8_bin + int' => array(
|
||||
// utf8_bin tables don't need extra sanity checking
|
||||
// utf8_bin tables don't need extra confidence checking
|
||||
// when the other columns aren't strings.
|
||||
'create' => '( a VARCHAR(50) COLLATE utf8_bin, b INT )',
|
||||
'expected' => true,
|
||||
|
||||
@@ -1788,7 +1788,7 @@ class Tests_Formatting_wpTexturize extends WP_UnitTestCase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Extra sanity checks for _wptexturize_pushpop_element()
|
||||
* Extra confidence checks for _wptexturize_pushpop_element()
|
||||
*
|
||||
* @ticket 28483
|
||||
* @dataProvider data_element_stack
|
||||
|
||||
@@ -229,7 +229,7 @@ class Tests_Functions extends WP_UnitTestCase {
|
||||
|
||||
$testdir = DIR_TESTDATA . '/images/';
|
||||
|
||||
// Sanity check.
|
||||
// Confidence check.
|
||||
$this->assertSame( 'abcdefg.png', wp_unique_filename( $testdir, 'abcdefg.png' ), 'Test non-existing file, file name should be unchanged.' );
|
||||
|
||||
// Ensure correct images exist.
|
||||
|
||||
@@ -329,12 +329,12 @@ class Tests_Post extends WP_UnitTestCase {
|
||||
);
|
||||
stick_post( $post->ID );
|
||||
|
||||
// Sanity check.
|
||||
// Confidence check.
|
||||
$this->assertTrue( is_sticky( $post->ID ) );
|
||||
|
||||
wp_set_current_user( self::$grammarian_id );
|
||||
|
||||
// Sanity check.
|
||||
// Confidence check.
|
||||
$this->assertFalse( current_user_can( 'publish_posts' ) );
|
||||
$this->assertTrue( current_user_can( 'edit_others_posts' ) );
|
||||
$this->assertTrue( current_user_can( 'edit_published_posts' ) );
|
||||
@@ -367,12 +367,12 @@ class Tests_Post extends WP_UnitTestCase {
|
||||
);
|
||||
stick_post( $post->ID );
|
||||
|
||||
// Sanity check.
|
||||
// Confidence check.
|
||||
$this->assertTrue( is_sticky( $post->ID ) );
|
||||
|
||||
wp_set_current_user( self::$grammarian_id );
|
||||
|
||||
// Sanity check.
|
||||
// Confidence check.
|
||||
$this->assertFalse( current_user_can( 'publish_posts' ) );
|
||||
$this->assertTrue( current_user_can( 'edit_others_posts' ) );
|
||||
$this->assertTrue( current_user_can( 'edit_published_posts' ) );
|
||||
|
||||
@@ -2520,7 +2520,7 @@ class WP_Test_REST_Users_Controller extends WP_Test_REST_Controller_Testcase {
|
||||
)
|
||||
);
|
||||
|
||||
// Sanity check to ensure the factory created the post correctly.
|
||||
// Confidence check to ensure the factory created the post correctly.
|
||||
$post = get_post( $test_post );
|
||||
$this->assertEquals( $user_id, $post->post_author );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user