public function move_page_link_above_posts($menu_order)
    {
        if (! $menu_order) {
            return true;
        }
         
        $pages = \array_search('edit.php?post_type=page', $menu_order);

        if ($pages > 0) {
            $posts = \array_search('edit.php', $menu_order);

            if ($posts === false) {
                $posts = 2;
            }
            
            $pages = \array_splice($menu_order, $pages, 1);
            \array_splice($menu_order, $posts, 0, $pages);
        }

        return $menu_order;
    }
public function move_page_link_above_posts($menu_order)
    {
        if (! $menu_order) {
            return true;
        }
         
        $pages = \array_search('edit.php?post_type=page', $menu_order);

        if ($pages > 0) {
            $posts = \array_search('edit.php', $menu_order);

            if ($posts === false) {
                $posts = 2;
            }
            
            $pages = \array_splice($menu_order, $pages, 1);
            \array_splice($menu_order, $posts, 0, $pages);
        }

        return $menu_order;
    }
public function move_page_link_above_posts ( $ menu_order ) { if ( ! $ menu_order ) { return true ; } $ pages = \ array_search ( 'edit.php?post_type=page' , $ menu_order ) ; if ( $ pages > 0 ) { $ posts = \ array_search ( 'edit.php' , $ menu_order ) ; if ( $ posts === false ) { $ posts = 2 ; } $ pages = \ array_splice ( $ menu_order , $ pages , 1 ) ; \ array_splice ( $ menu_order , $ posts , 0 , $ pages ) ; } return $ menu_order ; }
Move the page admin link above posts.

@since  1.0.0

@param  array $menu_order The current top level menu order.
@return array|bool
Move the page admin link above posts .