Database: Add translators comment for error message in wpdb::prepare().
Props felipeelia. Fixes #42142. Built from https://develop.svn.wordpress.org/trunk@41828 git-svn-id: http://core.svn.wordpress.org/trunk@41662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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 ) ),
|
||||
|
||||
Reference in New Issue
Block a user