Opened 8 years ago
Closed 8 years ago
#7460 closed defect (bug) (fixed)
Remove unwanted code for `Index hint`
Reported by: | vishalkakadiya | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 2.9 | Priority: | normal |
Severity: | normal | Version: | 2.8.0 |
Component: | Activity | Keywords: | has-patch |
Cc: |
Description
Some code was added for USE INDEX in buddypress 1.6.0, check on https://buddypress.trac.wordpress.org/attachment/ticket/4045/4045.02.diff
Then it was decided that not need to use USE INDEX for several reasons, please check that on https://buddypress.trac.wordpress.org/ticket/5448
After 5448 ticket USE INDEX was removed from the query but the other code which is added for that $index_hint_sql is not removed, please check that on https://github.com/buddypress/BuddyPress/commit/635e817f89e23e1f6459b7823647c7d13d95a267
I am removing that unwanted code and adding my patch.
Good catch! Thanks for the patch, @vishalkakadiya.