[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
Mon Sep 26 00:36:00 UTC 2022


#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:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Editor           |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  php81 has-patch  |     Focuses:
-----------------------------+------------------------------

Comment (by ramonopoly):

 > Running WP 5.9 and upon visiting the website, am now getting several
 repetitions of the same message:
 > 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

 I think this has already been addressed in April, 2022 (this year) in the
 follow PR:

 https://github.com/WordPress/gutenberg/pull/39927

 And the fix made it to WordPress 6.0

 https://core.trac.wordpress.org/browser/tags/6.0/src/wp-includes/block-
 supports/layout.php#L180

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


More information about the wp-trac mailing list