Skip to content

Commit d832b4e

Browse files
authored
Merge pull request #73 from viralsampat90/fix_remove_unused_variable#40
2 parents b69c9a8 + e9dfa89 commit d832b4e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Rewrite_Command.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,9 @@ public function structure( $args, $assoc_args ) {
160160

161161
// Launch a new process to flush rewrites because core expects flush
162162
// to happen after rewrites are set
163-
$new_assoc_args = [];
164-
$cmd = 'rewrite flush';
163+
$cmd = 'rewrite flush';
165164
if ( Utils\get_flag_value( $assoc_args, 'hard' ) ) {
166-
$cmd .= ' --hard';
167-
$new_assoc_args['hard'] = true;
165+
$cmd .= ' --hard';
168166
if ( ! in_array( 'mod_rewrite', (array) WP_CLI::get_config( 'apache_modules' ), true ) ) {
169167
WP_CLI::warning( 'Regenerating a .htaccess file requires special configuration. See usage docs.' );
170168
}

0 commit comments

Comments
 (0)