[wp-trac] [WordPress Trac] #55119: Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/peoplesofthesalmon/public_html/wp-includes/block-supports/layout.php on line 167

WordPress Trac noreply at wordpress.org
Tue Aug 8 18:41:46 UTC 2023


#55119: Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type
string is deprecated in /home/peoplesofthesalmon/public_html/wp-includes
/block-supports/layout.php on line 167
-------------------------------------------------+-------------------------
 Reporter:  oneearth27                           |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.0
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  php81 reporter-feedback needs-       |     Focuses:
  testing-info                                   |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:7 hellofromTonya]:
 > I'm curious if the `null to non-nullable` has already been resolved
 indirectly by a fix that then invoked one of the formatting functions.

 Yes, this notice appears to come from `untrailingslashit()` called on a
 `null` value.

 That would be a duplicate of #54997. The only known instance in core was
 resolved in [54349] and [54351] / #55967.

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


More information about the wp-trac mailing list