[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 Feb 8 20:23:28 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         |     Focuses:
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 Hi there, welcome to WordPress Trac! Thanks for the report.

 WordPress core is not fully compatible with PHP 8.1 yet, there are still
 some deprecation notices. If you need a workaround, I would suggest
 switching to PHP 8.0 for now.

 You can find more details in this post:
 [https://make.wordpress.org/core/2022/01/10/wordpress-5-9-and-php-8-0-8-1/
 WordPress 5.9 and PHP 8.0-8.1].

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


More information about the wp-trac mailing list