[wp-trac] [WordPress Trac] #49437: map_meta_cap was called incorrectly on wp_dashboard()
WordPress Trac
noreply at wordpress.org
Fri Feb 14 17:21:09 UTC 2020
#49437: map_meta_cap was called incorrectly on wp_dashboard()
----------------------------+-----------------------------
Reporter: sebastienserre | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
Hello,
I have a notice on my WP Back Office, I don't know if it the same issue
reported on #36208...
debug.log
{{{
[14-Feb-2020 17:14:59 UTC] PHP Notice: map_meta_cap was called
<strong>incorrectly</strong>. The post type scheduled-action is not
registered, so it may not be reliable to check the capability "edit_post"
against a post of that type. Please see <a
href="https://wordpress.org/support/article/debugging-in-
wordpress/">Debugging in WordPress</a> for more information. (This message
was added in version 4.4.0.) in /var/www/XXXXX/web/wp-
includes/functions.php on line 4986
}}}
with Query Monitor, I have this info in "Location":
{{{
wp-includes/functions.php:4986
map_meta_cap()
wp-includes/capabilities.php:389
map_meta_cap()
wp-includes/class-wp-user.php:749
WP_User->has_cap()
wp-includes/capabilities.php:658
current_user_can('edit_comment','86686')
wp-admin/includes/dashboard.php:644
_wp_dashboard_recent_comments_row()
wp-admin/includes/dashboard.php:1016
wp_dashboard_recent_comments()
wp-admin/includes/dashboard.php:868
wp_dashboard_site_activity()
wp-admin/includes/template.php:1343
do_meta_boxes()
wp-admin/includes/dashboard.php:232
wp_dashboard()
wp-admin/index.php:148
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49437>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list