Opened 9 years ago
Closed 9 years ago
#42142 closed defect (bug) (fixed)
Translatable strings in wp-db.php should use numbered arguments
| Reported by: | tobifjellner | Owned by: | swissspidy |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.9 |
| Component: | Database | Version: | 4.9 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
/wp-includes/wp-db.php :1294
sprintf( __( 'The query does not contain the correct number of placeholders (%d) for the number of arguments passed (%d).' ),
In order to allow translators to make the best possible translation, numbered placeholders should be used:
sprintf( __( 'The query does not contain the correct number of placeholders (%1$d) for the number of arguments passed (%2%d).' ),
Attachments (2)
Change History (10)
#1
in reply to: ↑ description
@
9 years ago
#2
@
9 years ago
- Summary Use of numbered arguments needed in wp-db.php → Translatable strings in wp-db.php should use numbered arguments
Note:
See TracTickets
for help on using tickets.
Ouch. %1$d and %2$d is probably better. :)
Replying to tobifjellner: