-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address potential issue with frontend profile editing
Check whether global `$pagenow` has a value before relying on it. Since the hook is called using `admin_init`, I'm not sure exactly how the user has reached this code, but it's possible it could be called manually or via AJAX. It's not a problem to check for it and to use the alternative code suggested by @shivchawla Co-Authored-By: shivchawla <shivchawla2001@gmail.com>
- Loading branch information
1 parent
8b5b545
commit cd11239
Showing
2 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters