[wp-trac] [WordPress Trac] #62228: Function get_usermeta is deprecated and Function has_cap was called with an argument that is deprecated
WordPress Trac
noreply at wordpress.org
Tue Oct 15 14:30:46 UTC 2024
#62228: Function get_usermeta is deprecated and Function has_cap was called with an
argument that is deprecated
-------------------------------------------------+-------------------------
Reporter: archerdev | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: ui, administration, php- |
compatibility |
-------------------------------------------------+-------------------------
We recently upgraded our WP to PHP 8.2, with WP DEBUG on, and after doing
so, we saw the below deprecation messages at the top of the admin. This
interfered with testing and the deprecation message changes to the admin
UI even broke the Media Library grid view.
Deprecated: Function get_usermeta is deprecated since version 3.0.0! Use
get_user_meta() instead. in /var/www/html/wp-includes/functions.php on
line 6085
Deprecated: Function 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
6085
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62228>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list