Skip to content

Admin_init Hook Issue (With Fix) #61

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 ) {

Activity

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

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