PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.6.5
ShopBuilder – WooCommerce Builder For Elementor v2.6.5
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
← All changes | app/Controllers/Admin/Notice/Review.php +4 -18 2.2.22.6.5 View file →
@@ -24,10 +24,8 @@
24 24 */
25 25 private function __construct() {
26 26 add_action( 'admin_init', [ $this, 'check_installation_time' ], 10 );
27 27 add_action( 'admin_init', [ $this, 'notice_actions' ], 5 );
28 -
29 - $this->remove_all_notices();
30 28 }
31 29
32 30 /**
33 31 * Check if review notice should be shown or not
@@ -34,8 +32,9 @@
34 32 *
35 33 * @return void
36 34 */
37 35 public function check_installation_time() {
36 +
38 37 $nobug = get_option( 'rtsb_admin_review_spare_me' );
39 38 $rated = get_option( 'rtsb_admin_review_rated' );
40 39
41 40 if ( '1' == $nobug || 'yes' == $rated ) {
@@ -127,8 +126,11 @@
127 126 /**
128 127 * Display Admin Notice, asking for a review
129 128 **/
130 129 public function display_admin_notice() {
130 + if ( isset( $GLOBALS['woobundle_notice'] ) || isset( $GLOBALS['rtsb__notice'] ) ) {
131 + return;
132 + }
131 133 global $pagenow;
132 134
133 135 $exclude = [
134 136 'themes.php',
@@ -299,21 +301,5 @@
299 301 <?php
300 302 }
301 303 }
302 304
303 - /**
304 - * Remove admin notices
305 - */
306 - public function remove_all_notices() {
307 - add_action(
308 - 'in_admin_header',
309 - function () {
310 - $screen = get_current_screen();
311 - if ( in_array( $screen->base, [ 'shopbuilder_page_rtsb-get-help' ], true ) ) {
312 - remove_all_actions( 'admin_notices' );
313 - remove_all_actions( 'all_admin_notices' );
314 - }
315 - },
316 - 1000
317 - );
318 - }
319 305 }