You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The upgrade routine in includes/class-apple-news.php that compares the currently installed version of the plugin to an option value of the last recorded version of the plugin and executes database migration code if the versions are different is not coded to prevent execution on the front-end. This upgrade code should only ever be executed in an admin context (is_admin()).
Steps To Reproduce
Update the source files for the plugin to a newer version which triggers an update routine (e.g., from 2.4.0 to 2.5.0) directly on the filesystem (rather than clicking an upgrade link in the admin).
Visit the front-end of the site while logged out and notice that the upgrade routine executes even though the current user is not logged in.
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description of the bug
The upgrade routine in
includes/class-apple-news.php
that compares the currently installed version of the plugin to an option value of the last recorded version of the plugin and executes database migration code if the versions are different is not coded to prevent execution on the front-end. This upgrade code should only ever be executed in an admin context (is_admin()
).Steps To Reproduce
Additional Information
No response
The text was updated successfully, but these errors were encountered: