Skip to content

Commit

Permalink
Merge pull request #31 from a8cteam51/fix/issue_30
Browse files Browse the repository at this point in the history
Fix/issue 30
  • Loading branch information
NickGreen authored Apr 23, 2024
2 parents 0bd2a0f + fe7929e commit 48fe7e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion class-plugin-autoupdate-filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private function get_auto_update_settings(): stdClass {
);

if ( is_wp_error( $response ) ) {
throw new RuntimeException( $response->get_error_message(), $response->get_error_code() );
throw new RuntimeException( $response->get_error_message() );
}

$response_code = wp_remote_retrieve_response_code( $response );
Expand Down
8 changes: 7 additions & 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: Filters whether autoupdates are on based on day/time and other settings.
Version: 1.5.2
Version: 1.5.3
Author: WordPress.com Special Projects
Author URI: https://wpspecialprojects.wordpress.com/
Update URI: https://github.com/a8cteam51/plugin-autoupdate-filter/
Expand All @@ -15,6 +15,12 @@
exit; // Exit if accessed directly
}

if ( defined( 'PLUGIN_AUTOUPDATE_FILTER_PATH' ) ) {
exit; // Exit if another copy of plugin is active
}

define( 'PLUGIN_AUTOUPDATE_FILTER_PATH', plugin_dir_path( __FILE__ ) );

// main plugin functionality
require_once dirname( __FILE__ ) . '/class-plugin-autoupdate-filter.php';

Expand Down

0 comments on commit 48fe7e8

Please sign in to comment.