Plugin Directory

Changeset 3408279


Ignore:
Timestamp:
12/02/2025 04:50:54 PM (6 weeks ago)
Author:
brightvesseldev
Message:

Small corretion in v1.3.1

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  
    219219           
    220220            //...
    221             $this->permitted_urls[] = $plugin_page_url;
     221            $this->permitted_urls[$channel_id] = $plugin_page_url;
    222222
    223223            $notification = array(
     
    336336                }
    337337
    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                }
    340343
    341344            }
  • bp-custom-order-status-for-woocommerce/trunk/vendor/niloys7/remote-admin-notification-client/class-remote-notification-client.php

    r3408213 r3408279  
    219219           
    220220            //...
    221             $this->permitted_urls[] = $plugin_page_url;
     221            $this->permitted_urls[$channel_id] = $plugin_page_url;
    222222
    223223            $notification = array(
     
    336336                }
    337337
    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                }
    340343
    341344            }
Note: See TracChangeset for help on using the changeset viewer.