Skip to content

Admin submenu throw an error #280

@timotheemoulin

Description

@timotheemoulin

$submenu[$this->slug][50] = [$sub[$edit_key][0], $capability, esc_url(admin_url('admin.php?page=' . $this->slug))];

$submenu[$this->slug][$c] = [$item[0], $item[1], esc_url(admin_url($url))];

Those 2 lines throw an error if the open_basedir restriction is in effect.

The issue comes from WP Core that checks if the file (menu URL) exists.

The menu URL should be a relative URL from the admin URL.

PR is comming

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