Please sign in to comment.
Enforce a minimum of two arguments for wpdb::prepare(). The first arg…
…ument is the query (or fragment thereof), which is required. Additional arguments are values to substitute into placeholders. This will generate E_WARNINGs for insufficient arguments when prepare() is called with no additional arguments. This should discourage improper uses of prepare() under the guise of safely running a query. props xknown. fixes #22262. git-svn-id: http://core.svn.wordpress.org/trunk@22429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
- Loading branch information...