[wp-trac] [WordPress Trac] #48702: [function] => add_submenu_page

WordPress Trac noreply at wordpress.org
Mon Nov 18 20:20:51 UTC 2019


#48702: [function] => add_submenu_page
--------------------------+----------------------
 Reporter:  j3gaming      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:  5.3
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------

Comment (by j3gaming):

 @garrett-eclipse

 Your explanation, and what is happening are slightly different.
 This is my line of code:
 add_submenu_page('activeadmin', "Users", "Users", 'administrator',
 'Users', 'ActiveAdminUsers');

 Notice 6 parameters right? I'm assuming the 7th parameter (position) is
 being passed as null.
 That causes this:
 The seventh parameter passed to add_submenu_page() should be an integer
 representing menu position

 null != int

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48702#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list