Make WordPress Core

Changeset 27074


Ignore:
Timestamp:
02/02/2014 09:47:58 PM (11 years ago)
Author:
nacin
Message:

Add a comment for [27073] as someone will inevitably complain it is tricked by % in a string. see #25604.

File:
1 edited

Legend:

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

    r27073 r27074  
    10541054            return;
    10551055
     1056        // This is not meant to be foolproof -- but it will catch obviously incorrect usage.
    10561057        if ( strpos( $query, '%' ) === false ) {
    10571058            _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'The query argument of %s must have a placeholder.' ), 'wpdb::prepare()' ), '3.9' );
Note: See TracChangeset for help on using the changeset viewer.