WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Brayne
    Member
    Posted 1 year 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) {

    Becomes

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

    Thanks for the consideration.

  2. 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