[wp-trac] [WordPress Trac] #24210: Issues found using a static analysis tool
WordPress Trac
noreply at wordpress.org
Sun Apr 28 19:35:48 UTC 2013
#24210: Issues found using a static analysis tool
--------------------------+------------------
Reporter: rlerdorf | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.6
Component: General | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------
Comment (by SergeyBiryukov):
> {{{
> > File : wp-includes/wp-db.php:648
> Reason : TooManyArgument
> Snippet : $this->has_cap('collation', $dbh)
> Line : if ( $this->has_cap( 'collation', $dbh ) && !empty(
$charset ) ) {
> }}}
Introduced in [15537]. `wpdb::has_cap()` only accepts one parameter.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24210#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list