[wp-trac] [WordPress Trac] #52506: Add escaping method for table names in SQL queries

WordPress Trac noreply at wordpress.org
Mon Jan 30 22:09:08 UTC 2023


#52506: Add escaping method for table names in SQL queries
-------------------------------------------------+-------------------------
 Reporter:  tellyworth                           |       Owner:
                                                 |  davidbaumwald
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.2
Component:  Database                             |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-unit-tests early needs-docs      |     Focuses:
  has-patch needs-testing needs-dev-note         |  performance
-------------------------------------------------+-------------------------

Comment (by jrf):

 Replying to [comment:78 SergeyBiryukov]:
 > Replying to [comment:77 jrf]:
 >
 > HyperDB loads the `wpdb` class outside of WordPress core, so
 `compat.php` was not loaded at all in this case.

 Ah, that was the missing piece of the puzzle. 👍

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52506#comment:79>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list