Make WordPress Core

Changeset 37086


Ignore:
Timestamp:
03/27/2016 06:26:33 PM (9 years ago)
Author:
DrewAPicture
Message:

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

See #32246.

File:
1 edited

Legend:

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

    r37085 r37086  
    12721272     *
    12731273     * Example Prepared Statement:
    1274      *  $wild = '%';
    1275      *  $find = 'only 43% of planets';
    1276      *  $like = $wild . $wpdb->esc_like( $find ) . $wild;
    1277      *  $sql  = $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_content LIKE '%s'", $like );
     1274     *
     1275     *     $wild = '%';
     1276     *     $find = 'only 43% of planets';
     1277     *     $like = $wild . $wpdb->esc_like( $find ) . $wild;
     1278     *     $sql  = $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_content LIKE '%s'", $like );
    12781279     *
    12791280     * Example Escape Chain:
    1280      *  $sql  = esc_sql( $wpdb->esc_like( $input ) );
     1281     *
     1282     *     $sql  = esc_sql( $wpdb->esc_like( $input ) );
    12811283     *
    12821284     * @since 4.0.0
Note: See TracChangeset for help on using the changeset viewer.