Opened 10 years ago
Closed 10 years ago
#37744 closed defect (bug) (fixed)
wpdb::prepare PHPDoc recommends bad PHP
| Reported by: | TJNowell | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7 |
| Component: | Database | Version: | 4.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
A diff to be applied to wp-db.php that adjusts the phpdocs of wpdb::prepare