From f3f30079193705661efbb606f0f13514052bdd42 Mon Sep 17 00:00:00 2001 From: Jon McPartland Date: Thu, 25 Jun 2015 13:49:45 +0100 Subject: [PATCH] support position param for menu pages --- Herbert/Framework/Panel.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Herbert/Framework/Panel.php b/Herbert/Framework/Panel.php index 45a1a17..e735684 100644 --- a/Herbert/Framework/Panel.php +++ b/Herbert/Framework/Panel.php @@ -209,7 +209,8 @@ protected function addPanel($panel) 'manage_options', $panel['slug'], $this->makeCallable($panel), - isset($panel['icon']) ? $this->fetchIcon($panel['icon']) : '' + isset($panel['icon']) ? $this->fetchIcon($panel['icon']) : '', + isset($panel['order']) ? $panel['order'] : null ); if (isset($panel['rename']) && !empty($panel['rename']))