PluginProbe
Force Refresh / 3.2.1
Force Refresh v3.2.1
3.2.1 3.2.0 3.1.2 3.1.1 3.1.0 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.2.0 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.10.0 2.10.1 2.10.2 2.11.0 2.11.1 2.12.0 All 54 releases
← All changes | filter-force-refresh.php +4 -4 2.12.0 → 3.2.1 View file →
@@ -12,10 +12,10 @@
12 12 /*
13 13 Plugin Name: Force Refresh
14 14 Plugin URI: https://github.com/jordanleven/force-refresh
15 15 Description: Force Refresh is a simple plugin that allows you to force a page refresh for users currently visiting your site.
16 -Version: 2.12.0
17 -Requires at least: 5.2
16 +Version: 3.2.1
17 +Requires at least: 5.9
18 18 Requires PHP: 7.4
19 19 Author: Jordan Leven
20 20 Author URI: https://github.com/jordanleven
21 21 Contributors:
@@ -22,8 +22,10 @@
22 22 */
23 23
24 24 // phpcs:enable Generic.Files.LineLength
25 25
26 +// The absolute path to the plugin's root directory.
27 +define( 'WP_FORCE_REFRESH_PLUGIN_DIR', __DIR__ );
26 28 // Define the name of the action for the refresh. This is used with the nonce to create a unique
27 29 // action when admins request a refresh.
28 30 define( 'WP_FORCE_REFRESH_ACTION', 'wp_force_refresh' );
29 31 // The slug used for Force Refresh on the WordPress.org site.
@@ -48,10 +50,8 @@
48 50 function get_main_plugin_file() {
49 51 return __FILE__;
50 52 }
51 53
52 -// Include the composer autoload file.
53 -require_once __DIR__ . '/vendor/autoload.php';
54 54 // Include the plugin autoload file.
55 55 require_once __DIR__ . '/includes/autoload.php';
56 56 // Include the functions file.
57 57 require_once __DIR__ . '/includes/functions.php';