[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 16:02:22 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        |  Resolution:
 Keywords:  close         |     Focuses:  administration, php-compatibility
--------------------------+------------------------------------------------
Changes (by knutsp):

 * keywords:   => close
 * focuses:  ui, administration, php-compatibility => administration, php-
     compatibility


Comment:

 Hello @archerdev and welcome to Trac.

 The message says some code is doing something wrong and/or deprecated.
 These warnings are then emitted because you have WP_DEBUG and
 display_errors on in wp-config.php. It probably has nothing to with the
 PHP version. It's generally recommended not to display errors to the
 browser, but write them to the debug log.

 It's probably a plugin or your theme doing this. Did you try with no
 active plugins and a default theme?

 Since this is most cerainly not because of a bug in WordPress core, and
 since this system is for tracking defects and enhancements for core, not a
 support forum, I suggest trying the support forums to get help with this
 and closing this ticket.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62228#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list