wpdb::add_placeholder_escape( string $query )
Adds a placeholder escape string, to escape anything that resembles a printf() placeholder.
Description Description
Parameters Parameters
- $query
-
(string) (Required) The query to escape.
Return Return
(string) The query with the placeholder escape string inserted where necessary.
Source Source
File: wp-includes/wp-db.php
public function add_placeholder_escape( $query ) { /* * To prevent returning anything that even vaguely resembles a placeholder, * we clobber every % we can find. */ return str_replace( '%', $this->placeholder_escape(), $query ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
4.8.3 | Introduced. |