Skip to content

Commit

Permalink
Merge pull request #23 from a8cteam51/add/restrict-updates-until-woo-…
Browse files Browse the repository at this point in the history
…8.6.1

Add/restrict updates until woo 8.6.1
  • Loading branch information
NickGreen authored Feb 16, 2024
2 parents d8d176f + 1ae8ae4 commit d04d06b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions class-plugin-autoupdate-filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ public function auto_update_specific_times( $update, $item ) {
'start' => gmdate( "Y" ) . '-01-01 00:00:00',
'end' => gmdate( "Y" ) . '-01-02 23:59:59',
),
'wait_for_next_woo_release' => array(
'start' => '2024-02-16 00:00:00',
'end' => '2024-02-20 23:59:59',
),
);
$holidays = apply_filters( 'plugin_autoupdate_filter_holidays', $holidays );

Expand Down Expand Up @@ -92,8 +96,8 @@ public function auto_update_specific_times( $update, $item ) {
return false;
}

// Otherwise, plugins will autoupdate regardless of settings in wp-admin
return true;
// Otherwise, plugins will autoupdate regardless of settings in wp-admin
return true;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion plugin-autoupdate-filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Plugin Autoupdate Filter
Plugin URI: https://github.com/a8cteam51/plugin-autoupdate-filter
Description: Sets plugin automatic updates to always on, but only happen during specific days and times.
Version: 1.4.4
Version: 1.4.6
Author: WordPress.com Special Projects
Author URI: https://wpspecialprojects.wordpress.com/
Update URI: https://github.com/a8cteam51/plugin-autoupdate-filter/
Expand Down

0 comments on commit d04d06b

Please sign in to comment.