PHP Notice: map_meta_cap – AnsPress 2.7

7.00K viewsUpdates
1

PHP Notice:  map_meta_cap was called <strong>incorrectly</strong>. The post type answer 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://codex.wordpress.org/Debugging_in_WordPress”>Debugging in WordPress</a> for more information. (This message was added in version 4.4.0.) in /home/wp-includes/functions.php on line 3792

 

 

PHP Notice:  map_meta_cap was called <strong>incorrectly</strong>. The post type answer is not registered, so it may not be reliable to check the capability “read_post” against a post of that type. Please see <a href=”https://codex.wordpress.org/Debugging_in_WordPress”>Debugging in WordPress</a> for more information. (This message was added in version 4.4.0.) in /home/wp-includes/functions.php on line 3792

1

Ok, found the cause and fixed it. Not sure why there were some stray comments belonging to anspress questions that have been deleted or missplaced the comments during an update … i dunno.

Deleting those two comments, fixed the problem.

You are viewing 1 out of 2 answers, click here to view all answers.