News for hackers. Stuff that matters.
Re:WordPlate: WordPress on Composer with sensible defaults by tyingq on Sunday February 26, 2023 @06:36AM (#34944768)
>Also $wpdb->prepare() uses parametrised values.

They appear to be a hand-rolled PHP version of imitation parameterized values, not the actual database library ones.

https://github.com/WordPress/WordPress/blob/master/wp-includ...

Re:WordPlate: WordPress on Composer with sensible defaults by berkle4455 on Sunday February 26, 2023 @11:08AM (#34946564)
Wow. That is so much code just to avoid calling mysqli_prepare(). And they insist on using a weird printf inspired syntax instead of ? or :field.
Re:WordPlate: WordPress on Composer with sensible defaults by tyingq on Sunday February 26, 2023 @11:13AM (#34946621)
I suppose it's pretty battle-hardened by now, but I'd be afraid to ever touch that code for fear of introducing a SQL injection.