Make WordPress Core


Ignore:
Timestamp:
11/08/2023 08:31:34 PM (6 months ago)
Author:
hellofromTonya
Message:

Database: Reinstate wpdb::$use_mysqli property.

Partial revert of [56475] to reinstate the private wpdb::$use_mysqli property and set to its default to true. This private property was / is accessible through the magic methods. Though Core's usage of this property was removed by [56475], plugins are using the property. Reinstating it resolves the BC break.

Follow up to [56475].

Props jason_the_adams, joemcgill, johnbillion, johnjamesjacoby, jrf, rajinsharwar, renehermi.
Fixes #59846.

File:
1 edited

Legend:

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

    r56549 r57089  
    690690     */
    691691    private $allow_unsafe_unquoted_parameters = true;
     692
     693    /**
     694     * Whether to use the mysqli extension over mysql. This is no longer used as the mysql
     695     * extension is no longer supported.
     696     *
     697     * Default true.
     698     *
     699     * @since 3.9.0
     700     * @since 6.4.0 This property was removed.
     701     * @since 6.4.1 This property was reinstated and its default value was changed to true.
     702     *              The property is no longer used in core but may be accessed externally.
     703     *
     704     * @var bool
     705     */
     706    private $use_mysqli = true;
    692707
    693708    /**
Note: See TracChangeset for help on using the changeset viewer.