[wp-trac] [WordPress Trac] #58476: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated
WordPress Trac
noreply at wordpress.org
Fri Jul 28 17:15:03 UTC 2023
#58476: preg_split(): Passing null to parameter #2 ($subject) of type string is
deprecated
-------------------------------+------------------------------
Reporter: KProvance | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------------+------------------------------
Comment (by mecano):
Is it ok to exclude calls that previously did pass?
If not, how about turning $text to empty string as
{{{
$text = empty ( $text ) ? '' : $text;
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58476#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list