From 597c067b6755f29744fdc3ccf92a54caa1577d7a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 20 Aug 2016 13:17:30 +0000 Subject: [PATCH] Docs: Correct usage examples for `wpdb::prepare()`, which should not be called statically. Props TJNowell. Fixes #37744. Built from https://develop.svn.wordpress.org/trunk@38289 git-svn-id: http://core.svn.wordpress.org/trunk@38230 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-includes/wp-db.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 01ce236ca2..6cd12c9431 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38288'; +$wp_version = '4.7-alpha-38289'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 2f8dbcf969..868ff385ae 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -1258,8 +1258,8 @@ class wpdb { * * Both %d and %s should be left unquoted in the query string. * - * wpdb::prepare( "SELECT * FROM `table` WHERE `column` = %s AND `field` = %d", 'foo', 1337 ) - * wpdb::prepare( "SELECT DATE_FORMAT(`field`, '%%c') FROM `table` WHERE `column` = %s", 'foo' ); + * $wpdb->prepare( "SELECT * FROM `table` WHERE `column` = %s AND `field` = %d", 'foo', 1337 ); + * $wpdb->prepare( "SELECT DATE_FORMAT(`field`, '%%c') FROM `table` WHERE `column` = %s", 'foo' ); * * @link https://secure.php.net/sprintf Description of syntax. * @since 2.3.0