Adds a placeholder escape string, to escape anything that resembles a printf() placeholder.
Parameters
$query
stringrequired- The query to escape.
Source
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 );
}
Changelog
Version | Description |
---|---|
4.8.3 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.