[wp-trac] [WordPress Trac] #41062: WP DEBUG true = has_cap was called with an argument that is deprecated

WordPress Trac noreply at wordpress.org
Thu Jun 15 11:20:52 UTC 2017


#41062: WP DEBUG true = has_cap was called with an argument that is deprecated
--------------------------+-----------------------------
 Reporter:  faca5         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.8
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hello.

 Please can you replace "has_cap" function with new one in "/wp-
 includes/functions.php"?

 Thank you!


 config.php
 define('WP_DEBUG', true);

 Error:
 Notice: has_cap was called with an argument that is
 <strong>deprecated</strong> since version 2.0.0! Usage of user levels by
 plugins and themes is deprecated. Use roles and capabilities instead. in
 /wp-includes/functions.php on line 4023

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41062>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list