Docs: Add missing quotes around a specifier in a query example in the DocBlock for wpdb::esc_like()
.
Props madvic. See #32246. git-svn-id: https://develop.svn.wordpress.org/trunk@37085 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b4c43b0005
commit
2ac50341ab
@ -1274,7 +1274,7 @@ class wpdb {
|
||||
* $wild = '%';
|
||||
* $find = 'only 43% of planets';
|
||||
* $like = $wild . $wpdb->esc_like( $find ) . $wild;
|
||||
* $sql = $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_content LIKE %s", $like );
|
||||
* $sql = $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_content LIKE '%s'", $like );
|
||||
*
|
||||
* Example Escape Chain:
|
||||
* $sql = esc_sql( $wpdb->esc_like( $input ) );
|
||||
|
Loading…
Reference in New Issue
Block a user