Title: PHP Notice
Last modified: August 31, 2016

---

# PHP Notice

 *  Resolved [Hareesh S](https://wordpress.org/support/users/hareesh-pillai/)
 * (@hareesh-pillai)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-notice-78/)
 * Hi. Thanks for the great plugin. I’ve a concern. This `add_management_page()`
   function is passed a deprecated argument. So it throws a PHP notice.
    PHP Notice:
   has_cap was called with an argument that is **deprecated** since version 2.0!
   Usage of user levels by plugins and themes is deprecated. Use roles and capabilities
   instead. Instead of using the User level 1, using a suitable role or capability(`
   edit_posts` may be?) will solve this.
 * [https://wordpress.org/plugins/delete-all-comments/](https://wordpress.org/plugins/delete-all-comments/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-notice-78/#post-7424860)
 * This warning is still present in the latest version. On line 15, `1` should be
   changed to `"edit_posts"`
 *  Thread Starter [Hareesh S](https://wordpress.org/support/users/hareesh-pillai/)
 * (@hareesh-pillai)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-notice-78/#post-7424861)
 * It need not necessarily be `edit_posts`. It could be any suitable role or capability.
 *  Plugin Contributor [osolutions](https://wordpress.org/support/users/osolutions/)
 * (@osolutions)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-notice-78/#post-7424862)
 * Fixed it in 1.3
 * Anyone with Editing post capability should be able to delete comments too. So
   setting that as capability level.
 * Thanks for the feedback Hareesh & KTS915
 *  Thread Starter [Hareesh S](https://wordpress.org/support/users/hareesh-pillai/)
 * (@hareesh-pillai)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-notice-78/#post-7424863)
 * I’m glad its fixed!
 *  [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-notice-78/#post-7424864)
 * Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP Notice’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/delete-all-comments.svg)
 * [Delete All Comments](https://wordpress.org/plugins/delete-all-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/delete-all-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/delete-all-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/delete-all-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/delete-all-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/delete-all-comments/reviews/)

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)

 * 5 replies
 * 3 participants
 * Last reply from: [KTS915](https://wordpress.org/support/users/kts915/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/php-notice-78/#post-7424864)
 * Status: resolved