Skip to content

Commit e9f2935

Browse files
chore: review
1 parent e6662be commit e9f2935

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

includes/admin/feedzy-rss-feeds-task-manager.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function register_actions() {
2828
'update_option_feedzy-settings',
2929
array( $this, 'maybe_reschedule_email_report' ),
3030
10,
31-
3
31+
2
3232
);
3333

3434
add_action(
@@ -89,11 +89,9 @@ public function schedule_email_report() {
8989
* @since 5.1.0
9090
* @param array<string, mixed> $old_value Previous option value.
9191
* @param array<string, mixed> $value New option value.
92-
* @param string $option Option name (unused).
9392
* @return void
9493
*/
95-
public function maybe_reschedule_email_report( $old_value, $value, $option ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
96-
94+
public function maybe_reschedule_email_report( $old_value, $value ) {
9795
$old_freq = isset( $old_value['logs']['email_frequency'] ) ? sanitize_text_field( $old_value['logs']['email_frequency'] ) : '';
9896
$new_freq = isset( $value['logs']['email_frequency'] ) ? sanitize_text_field( $value['logs']['email_frequency'] ) : '';
9997

0 commit comments

Comments
 (0)