[resolved] [closed] wpdb missing second argument in prepare. (3 posts)

  1. Brayne
    Posted 3 years ago #

    Latest nightly build 12-08-12

    I'm getting error messages for not having a second argument in a TON of code. Rather than going through an immense amount of updates for plugins, wouldn't it be easy to simply add some code to line 990 in wp-db.php?

    function prepare( $query, $args) {


    function prepare( $query, $args = "" ) {

    Thanks for the consideration.

  2. Drew Jaynes
    Docs Czar
    Posted 3 years ago #

    I believe wpdb::prepare() was intentionally changed to enforce a minimum number of arguments.

    Edit: See [22429].

Topic Closed

This topic has been closed to new replies.

About this Topic