[wp-trac] [WordPress Trac] #54914: Deprecation warning for PHP 8.1 setcookie

WordPress Trac noreply at wordpress.org
Mon Jun 13 15:20:16 UTC 2022


#54914: Deprecation warning for PHP 8.1 setcookie
--------------------------------+-----------------------------
 Reporter:  shenyanzhi          |       Owner:  SergeyBiryukov
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:  6.1
Component:  Options, Meta APIs  |     Version:  4.0
 Severity:  normal              |  Resolution:  fixed
 Keywords:  php81 has-patch     |     Focuses:
--------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 In [changeset:"53493" 53493]:
 {{{
 #!CommitTicketReference repository="" revision="53493"
 Tests: Add a unit test for PHP 8.1 deprecation notice in
 `wp_user_settings()`.

 This ensures that PHP 8.1 "passing null to non-nullable" deprecation
 notice is not thrown for the `$domain` parameter of `setcookie()` calls in
 the function.

 Follow-up to [53490].

 See #54914.
 }}}

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


More information about the wp-trac mailing list