PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
← All changes | includes/class-give-cache.php +3 -2 2.30.04.16.9 View file →
@@ -80,9 +80,9 @@
80 80
81 81 add_action( 'give_save_settings_give_settings', array( __CLASS__, 'flush_cache' ) );
82 82
83 83 add_action( 'wp', array( __CLASS__, 'prevent_caching' ) );
84 - add_action( 'admin_notices', array( $this, '__notices' ) );
84 + add_action( 'admin_notices', array($this, 'notices') );
85 85 }
86 86
87 87 /**
88 88 * Get result if cache enabled or not.
@@ -148,13 +148,14 @@
148 148
149 149 /**
150 150 * Notices function.
151 151 *
152 + * @since 4.9.0 rename function - PHP 8 compatibility
152 153 * @since 2.0.5
153 154 * @access public
154 155 * @credit WooCommerce
155 156 */
156 - public function __notices() {
157 + public function notices() {
157 158 if ( ! function_exists( 'w3tc_pgcache_flush' ) || ! function_exists( 'w3_instance' ) ) {
158 159 return;
159 160 }
160 161