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. git-svn-id: https://develop.svn.wordpress.org/trunk@28339 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e47eb14575
commit
4bddd84276
@ -932,7 +932,6 @@ class wpdb {
|
||||
break;
|
||||
default :
|
||||
return array();
|
||||
break;
|
||||
}
|
||||
|
||||
if ( $prefix ) {
|
||||
@ -1514,7 +1513,6 @@ class wpdb {
|
||||
*/
|
||||
$query = apply_filters( 'query', $query );
|
||||
|
||||
$return_val = 0;
|
||||
$this->flush();
|
||||
|
||||
// Log how the function was called
|
||||
@ -1786,7 +1784,7 @@ class wpdb {
|
||||
if ( ! is_array( $where ) )
|
||||
return false;
|
||||
|
||||
$bits = $wheres = array();
|
||||
$wheres = array();
|
||||
|
||||
$where_formats = $where_format = (array) $where_format;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user