| 1 | Index: wp-includes/taxonomy.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/taxonomy.php (revision 18407) |
|---|
| 4 | +++ wp-includes/taxonomy.php (working copy) |
|---|
| 5 | @@ -866,11 +866,9 @@ |
|---|
| 6 | if ( $output == OBJECT ) { |
|---|
| 7 | return $_term; |
|---|
| 8 | } elseif ( $output == ARRAY_A ) { |
|---|
| 9 | - $__term = get_object_vars($_term); |
|---|
| 10 | - return $__term; |
|---|
| 11 | + return get_object_vars($_term); |
|---|
| 12 | } elseif ( $output == ARRAY_N ) { |
|---|
| 13 | - $__term = array_values(get_object_vars($_term)); |
|---|
| 14 | - return $__term; |
|---|
| 15 | + return array_values(get_object_vars($_term)); |
|---|
| 16 | } else { |
|---|
| 17 | return $_term; |
|---|
| 18 | } |
|---|
| 19 | Index: wp-includes/post.php |
|---|
| 20 | =================================================================== |
|---|
| 21 | --- wp-includes/post.php (revision 18407) |
|---|
| 22 | +++ wp-includes/post.php (working copy) |
|---|
| 23 | @@ -403,11 +403,9 @@ |
|---|
| 24 | if ( $output == OBJECT ) { |
|---|
| 25 | return $_post; |
|---|
| 26 | } elseif ( $output == ARRAY_A ) { |
|---|
| 27 | - $__post = get_object_vars($_post); |
|---|
| 28 | - return $__post; |
|---|
| 29 | + return get_object_vars($_post); |
|---|
| 30 | } elseif ( $output == ARRAY_N ) { |
|---|
| 31 | - $__post = array_values(get_object_vars($_post)); |
|---|
| 32 | - return $__post; |
|---|
| 33 | + return array_values(get_object_vars($_post)); |
|---|
| 34 | } else { |
|---|
| 35 | return $_post; |
|---|
| 36 | } |
|---|