Easy Digital Downloads Integration
This update includes a setting to restrict access to links generated by Easy Digital Downloads. EDD allows you to restrict generating a download link to logged in users. However, if the link is known (i.e. a user shared this link with others), that link can be accessed by users who are not logged in.
The new integration in the A|O extension allows you to restrict access to links with one of two options. If the user is not logged in, you can return the default WP error message, or you can redirect the user to a login page.
I will be adding additional integrations with EDD in future releases. This current option will expand to allow checking the specific user for a specific download so that links can be restricted not only by login but between two users (useful if a user shares a purchased product link with another user).
Fix For Menu Editing
Version 1.2 added a feature to change display of login/register and user profile links in the menu based on a user’s login state. Unfortunately, there was a slight problem with this inclusion – two problems actually.
First, the logic to check if the setting is turned on was not correct. This actually resulted in the setting being turned on regardless of whether it was actually enabled in the settings.
To complicate this, the second issue was that it applied this switch whenever the menu function was run. Since the admin panel for editing menus uses this same function, that meant that an administrator would not see the login and register page links when editing a menu (since these would not show when the user is logged in).
This update corrects this problem in both areas – it will not apply to the admin panel, and it can be turned off/on correctly.
This update also applies some changes to the way the settings were updated. Previously, it may appear that certain settings were not updated when in fact they were. This problem has been corrected so that when settings are updated, this is correctly reflected in the tab without refreshing the page.
I also added forward/backward compatibility for some changes that are coming in the main plugin with regards to the way the custom fields array is handled.