Remove extraneous function parameters in the wpdb class. props rlerdorf. see #24210.

git-svn-id: http://core.svn.wordpress.org/trunk@24121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2013-04-29 00:31:56 +00:00
parent a419c1810b
commit e65c4190f1
1 changed files with 11 additions and 11 deletions

View File

@ -645,8 +645,8 @@ class wpdb {
$charset = $this->charset; $charset = $this->charset;
if ( ! isset( $collate ) ) if ( ! isset( $collate ) )
$collate = $this->collate; $collate = $this->collate;
if ( $this->has_cap( 'collation', $dbh ) && !empty( $charset ) ) { if ( $this->has_cap( 'collation' ) && ! empty( $charset ) ) {
if ( function_exists( 'mysql_set_charset' ) && $this->has_cap( 'set_charset', $dbh ) ) { if ( function_exists( 'mysql_set_charset' ) && $this->has_cap( 'set_charset' ) ) {
mysql_set_charset( $charset, $dbh ); mysql_set_charset( $charset, $dbh );
$this->real_escape = true; $this->real_escape = true;
} else { } else {
@ -1687,12 +1687,12 @@ class wpdb {
} }
/** /**
* Determine if a database supports a particular feature * Determine if a database supports a particular feature.
* *
* @since 2.7.0 * @since 2.7.0
* @see wpdb::db_version() * @see wpdb::db_version()
* *
* @param string $db_cap the feature * @param string $db_cap The feature to check for.
* @return bool * @return bool
*/ */
function has_cap( $db_cap ) { function has_cap( $db_cap ) {
@ -1700,8 +1700,8 @@ class wpdb {
switch ( strtolower( $db_cap ) ) { switch ( strtolower( $db_cap ) ) {
case 'collation' : // @since 2.5.0 case 'collation' : // @since 2.5.0
case 'group_concat' : // @since 2.7 case 'group_concat' : // @since 2.7.0
case 'subqueries' : // @since 2.7 case 'subqueries' : // @since 2.7.0
return version_compare( $version, '4.1', '>=' ); return version_compare( $version, '4.1', '>=' );
case 'set_charset' : case 'set_charset' :
return version_compare( $version, '5.0.7', '>=' ); return version_compare( $version, '5.0.7', '>=' );