Deprecation: has_cap called with deprecated argument #2

Closed
opened 2020-05-08 13:40:02 +00:00 by vdv · 2 comments
Owner

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

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```
vdv added the
bug
deprecation
labels 2020-05-08 13:40:02 +00:00
vdv self-assigned this 2020-05-08 13:40:02 +00:00
Author
Owner

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

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 ```
Author
Owner

Fixed by d90b8ba.

Fixed by d90b8ba.
vdv closed this issue 2020-05-08 14:08:04 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Dyomedea/pagemash#2
No description provided.