From 4a23f582154a424a899eab2c99cef0338fdba5c8 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 11 Oct 2017 08:34:34 +0000 Subject: [PATCH] Database: Add translators comment for error message in `wpdb::prepare()`. Props felipeelia. Fixes #42142. git-svn-id: https://develop.svn.wordpress.org/trunk@41828 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 a5903b4187..3f7d5ac8b2 100644 --- a/src/wp-includes/wp-db.php +++ b/src/wp-includes/wp-db.php @@ -1261,6 +1261,7 @@ class wpdb { if ( count ( $args ) !== $placeholders ) { wp_load_translations_early(); _doing_it_wrong( 'wpdb::prepare', + /* translators: 1: number of placeholders, 2: number of arguments passed */ sprintf( __( 'The query does not contain the correct number of placeholders (%1$d) for the number of arguments passed (%2$d).' ), $placeholders, count( $args ) ),