[wp-trac] [WordPress Trac] #59846: Reinstate the `wpdb::$use_mysqli` property

WordPress Trac noreply at wordpress.org
Wed Nov 8 19:34:44 UTC 2023


#59846: Reinstate the `wpdb::$use_mysqli` property
--------------------------+-------------------------
 Reporter:  johnbillion   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  6.4.1
Component:  Database      |    Version:  6.4
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-------------------------
 In #59118/[56475] the `wpdb::$use_mysqli` property was removed because it
 was a private property that was no longer accessed from within `wpdb`.
 This should mean its removal was safe, however the `wpdb` class also
 includes a `__call()` magic method which exposes private and protected
 properties. This means accessing `$wpdb->use_mysqli` is actually possible
 and is in use by plugins.

 See comments on #59118 for discussion.

 To retain backwards compatibility, the property should be reinstated with
 a value of `true`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59846>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list