Skip to content

http_headers_useragent missing second argument #1186

@sybrew

Description

@sybrew

Description

Since WP 5.1 (released in 2019), filter http_headers_useragent expects a second argument: $url.

Feedzy still needs to add this argument.

Any plugin that uses this filter expecting the second argument to be present will crash because of this.

This filter is replicated 2 times in Feedzy.

I recommend removing this filter copy and setting a custom one in flight.

Step-by-step reproduction instructions

  1. Install Feedzy.
  2. Install any other plugin that relies on http_headers_useragent, expecting 2 arguments on WP 5.1+.
  3. "Fatal error: Uncaught ArgumentCountError: Too few arguments to function [...]"

Screenshots, screen recording, code snippet or Help Scout ticket

No response

Environment info

No response

Is the issue you are reporting a regression

Yes, this is a regression.

Metadata

Metadata

Labels

bugThis label could be used to identify issues that are caused by a defect in the product.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions