mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 06:29:30 +00: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;
|
||||
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…
x
Reference in New Issue
Block a user