Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #60003


Ignore:
Timestamp:
12/02/2023 09:55:46 PM (7 months ago)
Author:
sabernhardt
Comment:

Hi and welcome to WordPress Core Trac!

The wp_match_mime_types() function has always required a string or an array of strings for both parameters (r6910).

Could you check for a stack trace and/or deactivate plugins individually to determine where the function was used?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60003

    • Property Keywords reporter-feedback added
    • Property Summary changed from php error to PHP error in wp_match_mime_types()
  • Ticket #60003 – Description

    initial v1  
    11PHP ERROR:
    22
    3 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home1/njscuban/public_html/luthierylabs/wp-includes/post.php on line 3308
     3`Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /.../wp-includes/post.php on line 3308`
    44
    55FIX:
     
    77change LINE 3308 to:
    88
     9{{{
    910if ( $real && preg_match( "#$pattern#", $real )
    1011     ^^^^^^^^^
     12}}}