Changeset 3408279
- Timestamp:
- 12/02/2025 04:50:54 PM (6 weeks ago)
- Location:
- bp-custom-order-status-for-woocommerce
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
bp-custom-order-status-for-woocommerce/tags/1.3.1/vendor/niloys7/remote-admin-notification-client/class-remote-notification-client.php
r3408213 r3408279 219 219 220 220 //... 221 $this->permitted_urls[ ] = $plugin_page_url;221 $this->permitted_urls[$channel_id] = $plugin_page_url; 222 222 223 223 $notification = array( … … 336 336 } 337 337 338 // Output the admin notice 339 $this->create_admin_notice( $rn->message, $this->get_notice_class( isset( $rn->style ) ? $rn->style : 'notice notice-success' ), $rn->slug ); 338 $channel_id = $notification['channel_id']; 339 if( $this->permitted_urls[$channel_id] === $_GET['page'] ){ 340 // Output the admin notice 341 $this->create_admin_notice( $rn->message, $this->get_notice_class( isset( $rn->style ) ? $rn->style : 'notice notice-success' ), $rn->slug ); 342 } 340 343 341 344 } -
bp-custom-order-status-for-woocommerce/trunk/vendor/niloys7/remote-admin-notification-client/class-remote-notification-client.php
r3408213 r3408279 219 219 220 220 //... 221 $this->permitted_urls[ ] = $plugin_page_url;221 $this->permitted_urls[$channel_id] = $plugin_page_url; 222 222 223 223 $notification = array( … … 336 336 } 337 337 338 // Output the admin notice 339 $this->create_admin_notice( $rn->message, $this->get_notice_class( isset( $rn->style ) ? $rn->style : 'notice notice-success' ), $rn->slug ); 338 $channel_id = $notification['channel_id']; 339 if( $this->permitted_urls[$channel_id] === $_GET['page'] ){ 340 // Output the admin notice 341 $this->create_admin_notice( $rn->message, $this->get_notice_class( isset( $rn->style ) ? $rn->style : 'notice notice-success' ), $rn->slug ); 342 } 340 343 341 344 }
Note: See TracChangeset
for help on using the changeset viewer.