Support » Plugins and Hacks » Q2W3 Post Order » Heads Up – minor coding issue with WP 3.5

  • Resolved AITpro

    (@aitpro)


    Hello,
    I was getting these php warning errors repetitively in my php error log with WP 3.5 Beta3. They are not a big deal, but i just wanted to give you a heads up that WP is now checking $wpdb->prepare escaping for syntax accuracy and will now generate php errors if the prepare method syntax does not appear to be valid to WP. For now i just suppressed $wpdb->prepare on code line 1098 to stop the php errors. 😉

    $sql = @$wpdb->prepare($sql);

    [14-Nov-2012 14:50:35] PHP Warning:  Missing argument 2 for wpdb::prepare(), called in /home/content/xxxxx/html/wordpress-testing-website/wp-content/plugins/q2w3-post-order/q2w3-post-order.php on line 1098 and defined in /home/content/xxxxx/html/wordpress-testing-website/wp-includes/wp-db.php on line 990

    http://wordpress.org/extend/plugins/q2w3-post-order/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Heads Up – minor coding issue with WP 3.5’ is closed to new replies.