WordPress.org

Ready to get started?Download WordPress

Forums

Q2W3 Post Order
[resolved] Heads Up - minor coding issue with WP 3.5 (3 posts)

  1. AITpro
    Member
    Posted 1 year ago #

    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/

  2. Max Bond
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for report!
    No more warnings in ver 1.2.5

  3. AITpro
    Member
    Posted 1 year ago #

    Thanks Max. Had a few DB queries to fix myself. ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.