| @@ -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 | |