[wp-trac] [WordPress Trac] #24210: Issues found using a static analysis tool
WordPress Trac
noreply at wordpress.org
Mon Apr 29 13:12:58 UTC 2013
#24210: Issues found using a static analysis tool
--------------------------+-----------------------
Reporter: rlerdorf | Owner: nacin
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 3.6
Component: General | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+-----------------------
Comment (by SergeyBiryukov):
Replying to [comment:21 dd32]:
> FWIW, This is a hold over from HyperDB I believe, as the has_cap has to
be called on the individual table/database connection being tested
Thanks for the clarification, makes sense.
HyperDB passes the handle to `db_version()`. wpdb, however, only supports
a single connection, so it didn't accept the extra parameter in
`has_cap()`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24210#comment:23>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list