WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.5/wp-includes/wp-db.php

    r22429 r23216  
    988988     *  if there was something to prepare
    989989     */
    990     function prepare( $query, $args ) {
     990    function prepare( $query, $args = null ) {
    991991        if ( is_null( $query ) )
    992992            return;
     993
     994        if ( func_num_args() < 2 )
     995            _doing_it_wrong( 'wpdb::prepare', 'wpdb::prepare() requires at least two arguments.', '3.5' );
    993996
    994997        $args = func_get_args();
Note: See TracChangeset for help on using the changeset viewer.