Opened 13 years ago
Closed 13 years ago
#5309 closed defect (bug) (fixed)
Remove unecessary wpdp->prepare
| Reported by: | graham washbrook | Owned by: | djpaul |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.0 |
| Component: | Extended Profile | Version: | 1.0 |
| Severity: | trivial | Keywords: | has-patch |
| Cc: |
Description
Prepare call isn’t doing anything as there are no inputs.
Fixes WARNING: Missing argument 2 for wpdb::prepare(), called in \buddypress\bp-xprofile\bp-xprofile-classes.php on line 1268
Ref:
http://make.wordpress.org/core/2012/12/12/php-warning-missing-argument-2-for-wpdb-prepare/
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks Graham, and good spot. We probably missed this because it's not a function used anywhere in core nowadays -- it used to be used for a "select random profile" button in the original theme (v1.0 - v1.2, ish).