Skip to content

Tweak - Allow Allow 3rd parties to suppress the "invalid meta" PHP notice #347

@daigo75

Description

@daigo75

Currently, class Puc_v4p9_Metadata raises a PHP notice when the response from the update server doesn't contain what the client library expects, such as the name and version entries. This notice can be superfluous, as in many cases there's already an error handling system in place to deal with this condition.

The notice is automatically hidden when the WP_DEBUG constant is not defined, but many live sites keep that notice on, causing the notice to appear in log files or to be shown to visitors. Adding a filter to allow 3rd parties to explicitly suppress the notice will allow to hide that notice as needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions