[wp-trac] [WordPress Trac] #52506: Add escaping method for table names in SQL queries
WordPress Trac
noreply at wordpress.org
Sat Jan 28 13:11:23 UTC 2023
#52506: Add escaping method for table names in SQL queries
-------------------------------------------------+-------------------------
Reporter: tellyworth | Owner:
| davidbaumwald
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.2
Component: Database | Version:
Severity: normal | Resolution:
Keywords: has-unit-tests early needs-docs | Focuses:
has-patch needs-testing needs-dev-note | performance
-------------------------------------------------+-------------------------
Changes (by Otto42):
* status: closed => reopened
* resolution: fixed =>
Comment:
Fatal error: Uncaught Error: Call to undefined function str_ends_with() in
.../wp-includes/class-wpdb.php on line 1623
This broke the grav-redirect.php functionality on wordpress.org, which is
why all the gravitas on this trac page are not showing up.
If WPDB is going to rely on a polyfill function, it probably should be
included somewhere in the file.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52506#comment:72>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list