Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix potential issue with missing top menu links #3264

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

mircobabini
Copy link
Member

Add a check to ensure $top_menu_page is not empty before generating admin page links. Prevents errors or unexpected behavior when the variable is undefined.

All Submissions:

Changes proposed in this Pull Request:

Resolves #3263.

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you successfully run tests with your changes locally?

Add a check to ensure `$top_menu_page` is not empty before generating admin page links. Prevents errors or unexpected behavior when the variable is undefined.
@dparker1005 dparker1005 merged commit e931022 into strangerstudios:dev Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PHP Warning: Undefined variable $top_menu_page in /paid-memberships-pro/includes/adminpages.php on line 708
2 participants