WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/08/2017 09:17:57 AM (2 years ago)
Author:
swissspidy
Message:

Database: Use numbered placeholders in error message in wpdb::prepare().

Props tobifjellner.
Fixes #42142.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/wp-db.php

    r41663 r41789  
    12621262            wp_load_translations_early();
    12631263            _doing_it_wrong( 'wpdb::prepare',
    1264                 sprintf( __( 'The query does not contain the correct number of placeholders (%d) for the number of arguments passed (%d).' ),
     1264                sprintf( __( 'The query does not contain the correct number of placeholders (%1$d) for the number of arguments passed (%2$d).' ),
    12651265                    $placeholders,
    12661266                    count( $args ) ),
Note: See TracChangeset for help on using the changeset viewer.