Changeset 45926 for trunk/src/wp-includes/wp-db.php
- Timestamp:
- 09/01/2019 05:12:43 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r45707 r45926 1308 1308 if ( strpos( $query, '%' ) === false ) { 1309 1309 wp_load_translations_early(); 1310 _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'The query argument of %s must have a placeholder.' ), 'wpdb::prepare()' ), '3.9.0' ); 1310 _doing_it_wrong( 1311 'wpdb::prepare', 1312 sprintf( 1313 /* translators: %s: wpdb::prepare() */ 1314 __( 'The query argument of %s must have a placeholder.' ), 1315 'wpdb::prepare()' 1316 ), 1317 '3.9.0' 1318 ); 1311 1319 } 1312 1320 … … 1321 1329 if ( ! is_scalar( $arg ) && ! is_null( $arg ) ) { 1322 1330 wp_load_translations_early(); 1323 _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'Unsupported value type (%s).' ), gettype( $arg ) ), '4.8.2' ); 1331 _doing_it_wrong( 1332 'wpdb::prepare', 1333 sprintf( 1334 /* translators: %s: value type */ 1335 __( 'Unsupported value type (%s).' ), 1336 gettype( $arg ) 1337 ), 1338 '4.8.2' 1339 ); 1324 1340 } 1325 1341 } … … 1358 1374 // If the passed query only expected one argument, but the wrong number of arguments were sent as an array, bail. 1359 1375 wp_load_translations_early(); 1360 _doing_it_wrong( 'wpdb::prepare', __( 'The query only expected one placeholder, but an array of multiple placeholders was sent.' ), '4.9.0' ); 1376 _doing_it_wrong( 1377 'wpdb::prepare', 1378 __( 'The query only expected one placeholder, but an array of multiple placeholders was sent.' ), 1379 '4.9.0' 1380 ); 1361 1381 1362 1382 return; … … 1369 1389 _doing_it_wrong( 1370 1390 'wpdb::prepare', 1371 /* translators: 1: number of placeholders, 2: number of arguments passed */1372 1391 sprintf( 1392 /* translators: 1: number of placeholders, 2: number of arguments passed */ 1373 1393 __( 'The query does not contain the correct number of placeholders (%1$d) for the number of arguments passed (%2$d).' ), 1374 1394 $placeholders,
Note: See TracChangeset
for help on using the changeset viewer.