[wp-trac] [WordPress Trac] #37744: wpdb::prepare PHPDoc recommends bad PHP

WordPress Trac noreply at wordpress.org
Sat Aug 20 01:01:21 UTC 2016


#37744: wpdb::prepare PHPDoc recommends bad PHP
--------------------------+-----------------------------
 Reporter:  TJNowell      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Database      |    Version:  4.3
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 The phpdoc of the prepare method recommends calling it statically via the
 examples. Doing this would cause PHP warnings and notices.

 I've attached a diff that should correct this by changing wpdb::prepare to
 $wpdb->prepare

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37744>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list