Skip to content

The MyYoast_Api_Request class should add headers with plugin versions. #12256

@herregroen

Description

@herregroen

On every request send by the MyYoast_Api_Request class the versions of all installed plugins should be added as headers.

The header key should be the plugin slug with -version appended. So yoast-seo-wordpress-premium becomes yoast-seo-wordpress-premium-version. The header value should be the plugin version.

Each active extension of ours, including both free and premium, should be added as a separate header. These can be passed to wp_remote_request as part of $args in the headers key.

Implementation is suggested in the enrich_request_arguments function.

For example. If I have free installed at version 9.5 and local installed at version 9.4.1 then the following headers should be send:

yoast-seo-wordpress-version: 9.5
yoast-seo-local-version: 9.4.1

parent #12136

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions