Opened 8 years ago
Closed 8 years ago
#37744 closed defect (bug) (fixed)
wpdb::prepare PHPDoc recommends bad PHP
Reported by: | TJNowell | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | 4.3 |
Component: | Database | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
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
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
A diff to be applied to wp-db.php that adjusts the phpdocs of wpdb::prepare