Deprecation: has_cap called with deprecated argument #2
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Dyomedea/pagemash#2
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Error message:
PHP Deprecated: has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /var/www/html/wp-includes/functions.php on line 4997
More complete stacktrace:
#0 _deprecated_argument(has_cap, 2.0.0, Usage of user levels is deprecated. Use capabilities instead.) called at [/var/www/html/wp-includes/class-wp-user.php:745] #1 WP_User->has_cap(7) called at [/var/www/html/wp-includes/capabilities.php:666] #2 current_user_can(7) called at [/var/www/html/wp-admin/includes/plugin.php:1369] #3 add_submenu_page(edit.php?post_type=page, pageMash: Page Management, pageMash , 7, pagemash/pagemash.php, pageMash_main) called at [/var/www/html/wp-content/plugins/pagemash/pagemash.php:206] #4 pageMash_add_pages() called at [/var/www/html/wp-includes/class-wp-hook.php:287] #5 WP_Hook->apply_filters(, Array ([0] => )) called at [/var/www/html/wp-includes/class-wp-hook.php:311] #6 WP_Hook->do_action(Array ([0] => )) called at [/var/www/html/wp-includes/plugin.php:478] #7 do_action(admin_menu, ) called at [/var/www/html/wp-admin/includes/menu.php:155] #8 require_once(/var/www/html/wp-admin/includes/menu.php) called at [/var/www/html/wp-admin/menu.php:326] #9 require(/var/www/html/wp-admin/menu.php) called at [/var/www/html/wp-admin/admin.php:153] #10 require_once(/var/www/html/wp-admin/admin.php) called at [/var/www/html/wp-admin/plugins.php:10] Deprecated: has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /var/www/html/wp-includes/functions.php on line 4998
Fixed by
d90b8ba
.