summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/wordpress-mobile-pack/admin/sections/admin-menu.php')
-rwxr-xr-xplugins/wordpress-mobile-pack/admin/sections/admin-menu.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/plugins/wordpress-mobile-pack/admin/sections/admin-menu.php b/plugins/wordpress-mobile-pack/admin/sections/admin-menu.php
index 10e9e2ee..822fe330 100755
--- a/plugins/wordpress-mobile-pack/admin/sections/admin-menu.php
+++ b/plugins/wordpress-mobile-pack/admin/sections/admin-menu.php
@@ -3,9 +3,14 @@
$screen = get_current_screen();
// set current page
-if($screen->id !== '')
- $current_page = substr($screen->id, strpos($screen->id, "_page_") + 6);
-else
+if ($screen->id !== '') {
+
+ if (strpos($screen->id, "_page_") !== false)
+ $current_page = substr($screen->id, strpos($screen->id, "_page_") + 6);
+ else
+ $current_page = substr($screen->id, strpos($screen->id, "_category_") + 10);
+
+} else
$current_page = '';
?>
@@ -18,7 +23,7 @@ else
<li <?php echo $current_page == 'wmp-options-theme' ? 'class="selected"' : '';?>>
<a href="<?php echo add_query_arg(array('page'=>'wmp-options-theme'), network_admin_url('admin.php'));?>">Look & Feel</a>
</li>
- <li <?php echo ($current_page == 'wmp-options-content' || $current_page == 'wmp-page-details') ? 'class="selected"' : '';?>>
+ <li <?php echo ($current_page == 'wmp-options-content' || $current_page == 'wmp-page-details' || $current_page == 'wmp-category-details') ? 'class="selected"' : '';?>>
<a href="<?php echo add_query_arg(array('page'=>'wmp-options-content'), network_admin_url('admin.php'));?>">Content</a>
</li>
<li <?php echo $current_page == 'wmp-options-settings' ? 'class="selected"' : '';?>>