Skip to content

Commit 8211e8b

Browse files
author
Mitesh
committed
Remove array_key_exists()
1 parent d305124 commit 8211e8b

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

features/theme-mod-list.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ Feature: Manage WordPress theme mods list
4848
-
4949
key: key_b
5050
value: value_b
51-
"""
51+
"""

src/Theme_Mod_Command.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,8 @@ public function get( $args = array(), $assoc_args = array() ) {
155155
* @subcommand list
156156
*/
157157
public function list_( $args = array(), $assoc_args = array() ) {
158-
if ( ! array_key_exists( 'all', $assoc_args ) ) {
159-
$assoc_args['all'] = 1;
160-
}
158+
159+
$assoc_args['all'] = 1;
161160

162161
$this->get( $args, $assoc_args );
163162
}

0 commit comments

Comments
 (0)