Viewing 2 reply threads
  • Author
    Posts
    • #2383
      jmayhak
      Member

      In ‘plugins/piklist/includes/class-piklist-admin.php’ on line 293 of version 0.9.4.14 of the plugin I believe the line should change from:

      ,'notice' => !in_array($page['sub_menu'], array('options-general.php'))

      to:

      ,'notice' => !in_array(isset($page['sub_menu']) ? $page['sub_menu'] : '', array('options-general.php'))

      This is because a warning is shown if the sub_menu field is omitted when creating a new settings page.

    • #2384
      Steve
      Keymaster

      @jmayhak– I believe this should work when there is no sub_menu defined.

      ,'notice' => isset($page['sub_menu']) ? !in_array($page['sub_menu'], array('options-general.php')) : false
      

      Will release with next version.

    • #2391
      jmayhak
      Member

      That works for me. Thanks!

Viewing 2 reply threads
  • The topic ‘Code update in order to remove warning for settings pages’ is closed to new replies.