Skip to content

Bind admin menu globals for PHP admin-page fuzzing #1413

Description

@chubes4

Problem

The PHP fuzz-suite primitive can fail while loading admin menu files from inside the ability execution trait:

The primitive includes from inside a class method. Included admin files expect and to be normal WordPress globals, but without explicit binding they are local function-scope variables. If is null or inspected before population, menu loading can throw before the primitive can emit structured coverage.

Expected

should bind the WordPress admin menu globals before including admin menu files, then emit a structured pass/skip/error result instead of throwing.

Evidence

Observed in Woo admin-page fuzz runs , , and .

Fix

Implemented in #1412.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions