PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.6
ShopBuilder – WooCommerce Builder For Elementor v3.2.6
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 +5 -20 2.2.23.2.6 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',
@@ -153,9 +155,9 @@
153 155 $args = [ '_wpnonce' => wp_create_nonce( 'rtsb_notice_nonce' ) ];
154 156 $dont_disturb = add_query_arg( $args + [ 'rtsb_admin_review_spare_me' => '1' ], $this->rtsb_current_admin_url() );
155 157 $remind_me = add_query_arg( $args + [ 'rtsb_admin_review_remind_me' => '1' ], $this->rtsb_current_admin_url() );
156 158 $rated = add_query_arg( $args + [ 'rtsb_admin_review_rated' => '1' ], $this->rtsb_current_admin_url() );
157 - $reviewurl = 'https://wordpress.org/support/plugin/shopbuilder/reviews/?filter=5#new-post';
159 + $reviewurl = 'https://wordpress.org/support/plugin/shopbuilder/reviews/';
158 160 $plugin_name = 'ShopBuilder – Elementor WooCommerce Builder Addons';
159 161 ?>
160 162 <div class="notice rtsb-review-notice rtsb-review-notice--extended">
161 163 <div class="rtsb-review-notice_content">
@@ -297,23 +299,6 @@
297 299 }
298 300 </style>
299 301 <?php
300 302 }
301 - }
302 -
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 303 }
319 304 }