Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Modernization: Avoid passing null to parameter 2 of http_build_query() #1800

Closed

Commits on Nov 2, 2021

  1. Code Modernization: Avoid passing null to parameter 2 of `http_build_…

    …query()`
    
    This fixes the "Deprecated: http_build_query(): Passing null to parameter WordPress#2 ($numeric_prefix) of type string is deprecated" warning on PHP 8.1.
    
    PHP has started requiring that built-in method arguments that are not explicitly declared as nullable may no longer be passed null. The correct value for the `$numeric_prefix` parameter to `http_build_query()` is an empty string.
    
    Trac ticket: https://core.trac.wordpress.org/ticket/53635
    anomiex committed Nov 2, 2021
    Configuration menu
    Copy the full SHA
    2464478 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a1f2603 View commit details
    Browse the repository at this point in the history