Make WordPress Core

Ticket #60187: class-wpdb.php.diff

File class-wpdb.php.diff, 1.3 KB (added by dartiss, 10 months ago)
  • wp-includes/class-wpdb.php

    diff --git a/wp-includes/class-wpdb.php b/wp-includes/class-wpdb.php
    index baba39d91f4d..d9186b91f463 100644
    a b class wpdb { 
    154154        protected $result;
    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
    160160         *
    class wpdb { 
    172172        protected $table_charset = array();
    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
    178178         *
    public function flush() { 
    19271927                        mysqli_free_result( $this->result );
    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;
    19331933                        }
    protected function check_safe_collation( $query ) { 
    35163516                        return false;
    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',
    35223522                        'utf8_general_ci',