[wp-trac] [WordPress Trac] #22873: Consider moving to a notice for $wpdb->prepare in 3.5.1

WordPress Trac noreply at wordpress.org
Wed Dec 19 19:18:58 UTC 2012


#22873: Consider moving to a notice for $wpdb->prepare in 3.5.1
------------------------------+--------------------
 Reporter:  nacin             |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  low               |   Milestone:  3.5.1
Component:  Warnings/Notices  |     Version:  3.5
 Severity:  minor             |  Resolution:
 Keywords:  has-patch         |
------------------------------+--------------------

Comment (by duck_):

 Replying to [comment:10 aaroncampbell]:
 > [attachment:22873.diff] is based off what we talked about in
 [https://irclogs.wordpress.org/chanlog.php?channel=wordpress-
 dev&day=2012-12-12&sort=asc#m518263 dev chat].  Basically it switches to
 using _doing_it_wrong(), but modifies _doing_it_wrong() to throw an error
 when on alpha, a warning when on beta, and a notice otherwise.

 I think we want to be warning during RC too. Also, we discussed including
 wp-includes/version.php instead of relying on the global which can be
 overridden.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22873#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list