diff --git a/wp-admin/includes/class-pclzip.php b/wp-admin/includes/class-pclzip.php index 3fdade5dd1..963f31178c 100644 --- a/wp-admin/includes/class-pclzip.php +++ b/wp-admin/includes/class-pclzip.php @@ -1854,7 +1854,7 @@ $p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] = floor($v_memory_limit_int*PCLZIP_TEMPORARY_FILE_RATIO); - // ----- Sanity check : No threshold if value lower than 1M + // ----- Confidence check : No threshold if value lower than 1M if ($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] < 1048576) { unset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]); } diff --git a/wp-admin/includes/class-plugin-upgrader.php b/wp-admin/includes/class-plugin-upgrader.php index 02743f6456..091cfebc18 100644 --- a/wp-admin/includes/class-plugin-upgrader.php +++ b/wp-admin/includes/class-plugin-upgrader.php @@ -472,7 +472,7 @@ class Plugin_Upgrader extends WP_Upgrader { } $working_directory = str_replace( $wp_filesystem->wp_content_dir(), trailingslashit( WP_CONTENT_DIR ), $source ); - if ( ! is_dir( $working_directory ) ) { // Sanity check, if the above fails, let's not prevent installation. + if ( ! is_dir( $working_directory ) ) { // Confidence check, if the above fails, let's not prevent installation. return $source; } diff --git a/wp-admin/includes/class-theme-upgrader.php b/wp-admin/includes/class-theme-upgrader.php index 12bd477291..b1cf677839 100644 --- a/wp-admin/includes/class-theme-upgrader.php +++ b/wp-admin/includes/class-theme-upgrader.php @@ -538,7 +538,7 @@ class Theme_Upgrader extends WP_Upgrader { // Check that the folder contains a valid theme. $working_directory = str_replace( $wp_filesystem->wp_content_dir(), trailingslashit( WP_CONTENT_DIR ), $source ); - if ( ! is_dir( $working_directory ) ) { // Sanity check, if the above fails, let's not prevent installation. + if ( ! is_dir( $working_directory ) ) { // Confidence check, if the above fails, let's not prevent installation. return $source; } diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index b9986d1bde..c93ac71bec 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -452,7 +452,7 @@ function edit_post( $post_data = null ) { $success = wp_update_post( $translated ); - // If the save failed, see if we can sanity check the main fields and try again. + // If the save failed, see if we can confidence check the main fields and try again. if ( ! $success && is_callable( array( $wpdb, 'strip_invalid_text_for_column' ) ) ) { $fields = array( 'post_title', 'post_content', 'post_excerpt' ); diff --git a/wp-admin/includes/update-core.php b/wp-admin/includes/update-core.php index ee710d3df3..0c66ad3ee9 100644 --- a/wp-admin/includes/update-core.php +++ b/wp-admin/includes/update-core.php @@ -1093,7 +1093,7 @@ function update_core( $from, $to ) { */ apply_filters( 'update_feedback', __( 'Verifying the unpacked files…' ) ); - // Sanity check the unzipped distribution. + // Confidence check the unzipped distribution. $distro = ''; $roots = array( '/wordpress/', '/wordpress-mu/' ); diff --git a/wp-admin/install.php b/wp-admin/install.php index 971392d076..bf102893ff 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -6,7 +6,7 @@ * @subpackage Administration */ -// Sanity check. +// Confidence check. if ( false ) { ?> diff --git a/wp-admin/js/post.js b/wp-admin/js/post.js index eb577013d5..bba9c17358 100644 --- a/wp-admin/js/post.js +++ b/wp-admin/js/post.js @@ -1173,7 +1173,7 @@ jQuery( function($) { } /** - * When the dragging stopped make sure we return focus and do a sanity check on the height. + * When the dragging stopped make sure we return focus and do a confidence check on the height. */ function endDrag() { var height, toolbarHeight; @@ -1198,7 +1198,7 @@ jQuery( function($) { $document.off( '.wp-editor-resize' ); - // Sanity check: normalize height to stay within acceptable ranges. + // Confidence check: normalize height to stay within acceptable ranges. if ( height && height > 50 && height < 5000 ) { setUserSetting( 'ed_size', height ); } diff --git a/wp-admin/js/theme.js b/wp-admin/js/theme.js index 5daf04f7d7..13ed5aab4e 100644 --- a/wp-admin/js/theme.js +++ b/wp-admin/js/theme.js @@ -1300,7 +1300,7 @@ themes.view.Themes = wp.Backbone.View.extend({ // Find the next model within the collection. nextModel = self.collection.at( self.collection.indexOf( model ) + 1 ); - // Sanity check which also serves as a boundary test. + // Confidence check which also serves as a boundary test. if ( nextModel !== undefined ) { // We have a new theme... diff --git a/wp-content/themes/twentytwenty/assets/js/customize-controls.js b/wp-content/themes/twentytwenty/assets/js/customize-controls.js index 4397cf29c7..ba2d5ad63f 100644 --- a/wp-content/themes/twentytwenty/assets/js/customize-controls.js +++ b/wp-content/themes/twentytwenty/assets/js/customize-controls.js @@ -69,7 +69,7 @@ // Get accessible colors for the defined background-color and hue. colors = twentyTwentyColor( backgroundColor, accentHue ); - // Sanity check. + // Confidence check. if ( colors.getAccentColor() && 'function' === typeof colors.getAccentColor().toCSS ) { // Update the value for this context. value[ context ] = { diff --git a/wp-content/themes/twentytwentyone/inc/template-functions.php b/wp-content/themes/twentytwentyone/inc/template-functions.php index 5c1ca0f1e1..4924773dc1 100644 --- a/wp-content/themes/twentytwentyone/inc/template-functions.php +++ b/wp-content/themes/twentytwentyone/inc/template-functions.php @@ -367,7 +367,7 @@ function twenty_twenty_one_print_first_instance_of_block( $block_name, $content // Loop blocks. foreach ( $blocks as $block ) { - // Sanity check. + // Confidence check. if ( ! isset( $block['blockName'] ) ) { continue; } diff --git a/wp-includes/class-wp-tax-query.php b/wp-includes/class-wp-tax-query.php index 38841c42b0..58e53ea4a2 100644 --- a/wp-includes/class-wp-tax-query.php +++ b/wp-includes/class-wp-tax-query.php @@ -505,7 +505,7 @@ class WP_Tax_Query { protected function find_compatible_table_alias( $clause, $parent_query ) { $alias = false; - // Sanity check. Only IN queries use the JOIN syntax. + // Confidence check. Only IN queries use the JOIN syntax. if ( ! isset( $clause['operator'] ) || 'IN' !== $clause['operator'] ) { return $alias; } diff --git a/wp-includes/class-wpdb.php b/wp-includes/class-wpdb.php index baba39d91f..d9186b91f4 100644 --- a/wp-includes/class-wpdb.php +++ b/wp-includes/class-wpdb.php @@ -154,7 +154,7 @@ class wpdb { protected $result; /** - * Cached column info, for sanity checking data before inserting. + * Cached column info, for confidence checking data before inserting. * * @since 4.2.0 * @@ -172,7 +172,7 @@ class wpdb { protected $table_charset = array(); /** - * Whether text fields in the current query need to be sanity checked. + * Whether text fields in the current query need to be confidence checked. * * @since 4.2.0 * @@ -1927,7 +1927,7 @@ class wpdb { mysqli_free_result( $this->result ); $this->result = null; - // Sanity check before using the handle. + // Confidence check before using the handle. if ( empty( $this->dbh ) || ! ( $this->dbh instanceof mysqli ) ) { return; } @@ -3516,7 +3516,7 @@ class wpdb { return false; } - // If any of the columns don't have one of these collations, it needs more sanity checking. + // If any of the columns don't have one of these collations, it needs more confidence checking. $safe_collations = array( 'utf8_bin', 'utf8_general_ci', diff --git a/wp-includes/cron.php b/wp-includes/cron.php index c1837e6051..aadc22b7eb 100644 --- a/wp-includes/cron.php +++ b/wp-includes/cron.php @@ -874,7 +874,7 @@ function spawn_cron( $gmt_time = 0 ) { return false; } - // Sanity check. + // Confidence check. $crons = wp_get_ready_cron_jobs(); if ( empty( $crons ) ) { return false; diff --git a/wp-includes/functions.php b/wp-includes/functions.php index d270157d1f..c4ecb81f66 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -4284,7 +4284,7 @@ function _wp_die_process_input( $message, $title = '', $args = array() ) { } /** - * Encodes a variable into JSON, with some sanity checks. + * Encodes a variable into JSON, with some confidence checks. * * @since 4.1.0 * @since 5.3.0 No longer handles support for PHP < 5.6. @@ -4300,7 +4300,7 @@ function _wp_die_process_input( $message, $title = '', $args = array() ) { function wp_json_encode( $value, $flags = 0, $depth = 512 ) { $json = json_encode( $value, $flags, $depth ); - // If json_encode() was successful, no need to do more sanity checking. + // If json_encode() was successful, no need to do more confidence checking. if ( false !== $json ) { return $json; } @@ -4315,7 +4315,7 @@ function wp_json_encode( $value, $flags = 0, $depth = 512 ) { } /** - * Performs sanity checks on data that shall be encoded to JSON. + * Performs confidence checks on data that shall be encoded to JSON. * * @ignore * @since 4.1.0 diff --git a/wp-includes/js/tinymce/utils/form_utils.js b/wp-includes/js/tinymce/utils/form_utils.js index 358ad60a9a..8f8a234c95 100644 --- a/wp-includes/js/tinymce/utils/form_utils.js +++ b/wp-includes/js/tinymce/utils/form_utils.js @@ -199,7 +199,7 @@ function getCSSSize(size) { if (/^[0-9]+$/.test(size)) { size += 'px'; } - // Sanity check, IE doesn't like broken values + // Confidence check, IE doesn't like broken values else if (!(/^[0-9\.]+(px|%|in|cm|mm|em|ex|pt|pc)$/i.test(size))) { return ""; } diff --git a/wp-includes/post.php b/wp-includes/post.php index d6b6bc6649..25fefbb621 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -3861,7 +3861,7 @@ function wp_untrash_post_comments( $post = null ) { } foreach ( $group_by_status as $status => $comments ) { - // Sanity check. This shouldn't happen. + // Confidence check. This shouldn't happen. if ( 'post-trashed' === $status ) { $status = '0'; } diff --git a/wp-includes/shortcodes.php b/wp-includes/shortcodes.php index 24df21d4da..98cd8f71dd 100644 --- a/wp-includes/shortcodes.php +++ b/wp-includes/shortcodes.php @@ -504,7 +504,7 @@ function do_shortcodes_in_html_tags( $content, $ignore_html, $tagnames ) { $element = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $element ); } - // Looks like we found some crazy unfiltered HTML. Skipping it for sanity. + // Looks like we found some crazy unfiltered HTML. Skipping it for confidence. $element = strtr( $element, $trans ); continue; } diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 59ec5345fe..eaadaad65c 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -2573,7 +2573,7 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) { $tt_id = (int) $wpdb->insert_id; /* - * Sanity check: if we just created a term with the same parent + taxonomy + slug but a higher term_id than + * Confidence check: if we just created a term with the same parent + taxonomy + slug but a higher term_id than * an existing term, then we have unwittingly created a duplicate term. Delete the dupe, and use the term_id * and term_taxonomy_id of the older term instead. Then return out of the function so that the "create" hooks * are not fired. diff --git a/wp-includes/version.php b/wp-includes/version.php index ec1c105666..1cd6a3ce8b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57238'; +$wp_version = '6.5-alpha-57239'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.