Make WordPress Core

Changeset 37085


Ignore:
Timestamp:
03/27/2016 06:24:45 PM (11 years ago)
Author:
DrewAPicture
Message:

Docs: Add missing quotes around a specifier in a query example in the DocBlock for wpdb::esc_like().

Props madvic.
See #32246.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/wp-db.php

    r36997 r37085  
    12751275         *  $find = 'only 43% of planets';
    12761276         *  $like = $wild . $wpdb->esc_like( $find ) . $wild;
    1277          *  $sql  = $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_content LIKE %s", $like );
     1277         *  $sql  = $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_content LIKE '%s'", $like );
    12781278         *
    12791279         * Example Escape Chain:
Note: See TracChangeset for help on using the changeset viewer.