mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 15:47:38 +02:00
In wpdb
, remove dead code:
* In `->tables()`, `break` is unreachable after `return` * In `->query()`, `$return` is always set, so doesn't need an initial value of `0` * In `->delete()`, `$bits` is unused See #27882. Built from https://develop.svn.wordpress.org/trunk@28339 git-svn-id: http://core.svn.wordpress.org/trunk@28167 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
06373a6f32
commit
361e3e1ee6
@ -932,7 +932,6 @@ class wpdb {
|
|||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
return array();
|
return array();
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $prefix ) {
|
if ( $prefix ) {
|
||||||
@ -1514,7 +1513,6 @@ class wpdb {
|
|||||||
*/
|
*/
|
||||||
$query = apply_filters( 'query', $query );
|
$query = apply_filters( 'query', $query );
|
||||||
|
|
||||||
$return_val = 0;
|
|
||||||
$this->flush();
|
$this->flush();
|
||||||
|
|
||||||
// Log how the function was called
|
// Log how the function was called
|
||||||
@ -1786,7 +1784,7 @@ class wpdb {
|
|||||||
if ( ! is_array( $where ) )
|
if ( ! is_array( $where ) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
$bits = $wheres = array();
|
$wheres = array();
|
||||||
|
|
||||||
$where_formats = $where_format = (array) $where_format;
|
$where_formats = $where_format = (array) $where_format;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user