From e993ef024995164ea75f5ee9c4eb79b8ac51b837 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 2 Feb 2014 21:47:58 +0000 Subject: [PATCH] Add a comment for [27073] as someone will inevitably complain it is tricked by % in a string. see #25604. git-svn-id: https://develop.svn.wordpress.org/trunk@27074 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/wp-db.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/wp-db.php b/src/wp-includes/wp-db.php index 215494fe6e..1a7ab30266 100644 --- a/src/wp-includes/wp-db.php +++ b/src/wp-includes/wp-db.php @@ -1053,6 +1053,7 @@ class wpdb { if ( is_null( $query ) ) return; + // This is not meant to be foolproof -- but it will catch obviously incorrect usage. if ( strpos( $query, '%' ) === false ) { _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'The query argument of %s must have a placeholder.' ), 'wpdb::prepare()' ), '3.9' ); }