Docs: Following [37085], properly indent the markdown-formatted examples in the DocBlock for wpdb::esc_like().

See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@37086 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2016-03-27 18:26:33 +00:00
parent 2ac50341ab
commit b7e91e1dcc

View File

@ -1271,13 +1271,15 @@ class wpdb {
* Use this only before wpdb::prepare() or esc_sql(). Reversing the order is very bad for security. * Use this only before wpdb::prepare() or esc_sql(). Reversing the order is very bad for security.
* *
* Example Prepared Statement: * Example Prepared Statement:
* $wild = '%'; *
* $find = 'only 43% of planets'; * $wild = '%';
* $like = $wild . $wpdb->esc_like( $find ) . $wild; * $find = 'only 43% of planets';
* $sql = $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_content LIKE '%s'", $like ); * $like = $wild . $wpdb->esc_like( $find ) . $wild;
* $sql = $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_content LIKE '%s'", $like );
* *
* Example Escape Chain: * Example Escape Chain:
* $sql = esc_sql( $wpdb->esc_like( $input ) ); *
* $sql = esc_sql( $wpdb->esc_like( $input ) );
* *
* @since 4.0.0 * @since 4.0.0
* @access public * @access public