Support

Account

Home Forums Bug Reports Wrong parameter ordering in options page addon

Wrong parameter ordering in options page addon

  • Hi,

    I found a little bug in the options page addon. Not very dramatically.
    Maybe you fixed it already, take a look at line #275:

    $child_page = add_submenu_page( $page['parent'], $page['menu'], $page['title'], $page['capability'], $page['slug'], array($this, 'html'));

    You reversed page title and menu title. The page title should be the second, and the menu title the third parameter of add_submenu_page.

    Best,
    Markus

Viewing 1 post (of 1 total)

The topic ‘Wrong parameter ordering in options page addon’ is closed to new replies.