[wp-trac] [WordPress Trac] #55656: PHP 8.x: various compatibility fixes for WordPress 6.1

WordPress Trac noreply at wordpress.org
Wed May 25 21:51:59 UTC 2022


#55656: PHP 8.x: various compatibility fixes for WordPress 6.1
-------------------------------------------------+-------------------------
 Reporter:  hellofromTonya                       |       Owner:  (none)
     Type:  task (blessed)                       |      Status:  new
 Priority:  normal                               |   Milestone:  6.1
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  php8 php81 php82 has-patch has-      |     Focuses:  coding-
  unit-tests                                     |  standards
-------------------------------------------------+-------------------------

Comment (by johnjamesjacoby):

 `wp_debug_backtrace_summary()` of the above screenshot reveals:

 {{{
 string(85) "require('wp-login.php'), wp_signon, wp_authenticate,
 sanitize_user, wp_strip_all_tags"
 }}}

 All of the above functions would benefit internally from a pretty standard
 round of type checking, better default variable & parameter values, and
 isset/empty checks to avoid assuming array keys exist (or
 `array_key_exists()` if that's preferable at the time & place).

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


More information about the wp-trac mailing list