summaryrefslogtreecommitdiff
path: root/Postman/PostmanUtils.php
diff options
context:
space:
mode:
Diffstat (limited to 'Postman/PostmanUtils.php')
-rw-r--r--Postman/PostmanUtils.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Postman/PostmanUtils.php b/Postman/PostmanUtils.php
index 5405b79..8c7081f 100644
--- a/Postman/PostmanUtils.php
+++ b/Postman/PostmanUtils.php
@@ -36,6 +36,10 @@ class PostmanUtils {
* @return string
*/
public static function getPageUrl( $slug ) {
+ if ( is_network_admin() ) {
+ return network_admin_url( 'admin.php?page=' . $slug );
+ }
+
return get_admin_url() . 'admin.php?page=' . $slug;
}
@@ -393,6 +397,7 @@ class PostmanUtils {
if ( $logger->isTrace() ) {
$logger->trace( 'Registering admin menu ' . $callbackName );
}
+
add_action( 'admin_menu', array(
$viewController,
$callbackName,