[wp-trac] [WordPress Trac] #48702: [function] => add_submenu_page
WordPress Trac
noreply at wordpress.org
Mon Nov 18 16:43:24 UTC 2019
#48702: [function] => add_submenu_page
--------------------------+-----------------------------
Reporter: j3gaming | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.3
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Got this immediately after updating
(Triggered by my overly cautious error reporting)
Array
(
[0] => Array
(
[function] => CustomStackTrace
[args] => Array
(
[0] => 1024
[1] => add_submenu_page was called incorrectly. The
seventh parameter passed to add_submenu_page() should be an integer
representing menu position. Please see Debugging in WordPress for more
information. (This message was added in version 5.3.0.)
[2] => C:\inetpub\wwwroot\wp-includes\functions.php
[3] => 4903
[4] => Array
(
[function] => add_submenu_page
[message] => The seventh parameter passed to
add_submenu_page() should be an integer representing menu position. Please
see Debugging in WordPress for more information.
[version] => (This message was added in
version 5.3.0.)
)
)
)
[1] => Array
(
[file] => C:\inetpub\wwwroot\wp-includes\functions.php
[line] => 4903
[function] => trigger_error
[args] => Array
(
[0] => add_submenu_page was called incorrectly. The
seventh parameter passed to add_submenu_page() should be an integer
representing menu position. Please see Debugging in WordPress for more
information. (This message was added in version 5.3.0.)
)
)
[2] => Array
(
[file] => C:\inetpub\wwwroot\wp-admin\includes\plugin.php
[line] => 1385
[function] => _doing_it_wrong
[args] => Array
(
[0] => add_submenu_page
[1] => The seventh parameter passed to
add_submenu_page() should be an integer representing menu position. Please
see Debugging in WordPress for more information.
[2] => (This message was added in version 5.3.0.)
)
)
[3] => Array
(
[file] => C:\inetpub\wwwroot\wp-content\functions\Sidebar.php
[line] => 76
[function] => add_submenu_page
[args] => Array
(
[0] => Reporting
[1] => Labour Hours
[2] => Labour Hours
[3] => reporting_dashboard
[4] => LabourHours
[5] => ShowLabourHours
[6] => https://fillmore.mobi/wp-
content/uploads/2018/07/pin.png
[7] => 2
)
)
[4] => Array
(
[file] => C:\inetpub\wwwroot\wp-includes\class-wp-hook.php
[line] => 288
[function] => custom_menu_page_removing
[args] => Array
(
[0] =>
)
)
[5] => Array
(
[file] => C:\inetpub\wwwroot\wp-includes\class-wp-hook.php
[line] => 312
[function] => apply_filters
[class] => WP_Hook
[object] => WP_Hook Object
(
[callbacks] => Array
(
[10] => Array
(
[_add_post_type_submenus] => Array
(
[function] =>
_add_post_type_submenus
[accepted_args] => 1
)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48702>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list