[wp-trac] [WordPress Trac] #55411: Deprecated error in WordPress 5.9 on PHP 8.1

WordPress Trac noreply at wordpress.org
Fri Apr 29 02:24:19 UTC 2022

#55411: Deprecated error in WordPress 5.9 on PHP 8.1
 Reporter:  meysamnorouzi            |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:  5.9.2
 Severity:  normal                   |  Resolution:
 Keywords:  php81 reporter-feedback  |     Focuses:

Comment (by jrf):

 Replying to [comment:5 wparslan]:
 > @jrf you are right, the functionality doesn't stop.
 > However, we are left with a lot of unwanted lines on the front-end
 sometimes breaking the structures.
 > So have to resolve these deprecation warnings.

 @wparslan If you are seeing these on the front-end, turn off `WP_DEBUG`.

 Other than that, resolving these needs a concerted effort and strategy and
 should not be done hap-snap, as is often done now, resulting in ''hiding''
 the notices instead of properly fixing them.

 There are dedicated tickets for solving these type of PHP cross-version
 compatibility issues, like #54730.

 IMO, this ticket should be closed as a duplicate.

Ticket URL: <https://core.trac.wordpress.org/ticket/55411#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list