Skip to content

Protect: do not offer option to enable module in dashboard widget when it is force-disabled via filter #19206

Open

Description

// Enable Jetpack Search only
add_filter(
    'jetpack_get_available_modules',
    static function ($modules) {
        return array_intersect_key($modules, ['search' => true]);
    },
    10,
    1
);

Steps to reproduce the issue

  1. See the dashboard widget on the screenshot

What I expected

No advertisment.

What happened instead

Screenshots

kép

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    [Feature] ProtectAlso known as Brute Force Attack Protection[Pri] Low[Type] BugWhen a feature is broken and / or not performing as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions