Skip to content

Admin_init Hook Issue (With Fix) #61

@DawnWakening

Description

@DawnWakening

/wp-analytify/classes/analytify-settings.php

admin_init() function should check to make sure the page is set before proceeding. Otherwise, this may conflict with other WP plugins that utilize the admin panel (such as LiteSpeed Cache), without defining a page.

Error:

Warning: Undefined array key "page" in /home/website/public_html/wp-content/plugins/wp-analytify/classes/analytify-settings.php on line 479

Fix:

if ( ('admin.php' === $pagenow) && isset($_GET['page']) && ('analytify-settings' === $_GET['page'] ) || 'options.php' === $pagenow ) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions