Add a new "Redirect Page" setting in the admin#14
Merged
Conversation
…onality - Added a new "Redirect Page" setting in AdminSettings to configure where authenticated users are redirected after login. - Integrated Select2 for the redirect page selector in the admin interface for improved usability. - Removed the `redirect` attribute from the `[passwp_login]` shortcode, now relying on the global setting. - Updated auto-redirect behavior to use a meta refresh for CSP compatibility instead of JavaScript. - Fixed a Content Security Policy violation by eliminating inline JavaScript for redirects. - Updated version to 1.4.0 in main plugin file and readme. - Adjusted tests to reflect changes in redirect logic and settings.
…p for better readability
- Updated project version to 1.4.0 in package.json and localization files. - Modified passwp-posts-nb_NO.po and passwp-posts-nb_NO.l10n.php to reflect new version and updated translation strings. - Adjusted POT creation date in passwp-posts.pot to match the new version. - Enhanced i18n scripts in package.json for better localization management. - Updated binary .mo file to ensure compatibility with the latest translations.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new global "Redirect Page" setting for authenticated user redirection, improves Content Security Policy (CSP) compatibility, and simplifies the shortcode logic by removing the
redirectattribute. The admin interface now uses Select2 for easier page/post selection, and the redirect mechanism uses a meta refresh instead of JavaScript. Several tests have been updated to reflect these changes.Admin Settings and UI Improvements:
redirect_pageoption. [1] [2] [3]Shortcode and Redirect Logic Changes:
redirectattribute from the[passwp_login]shortcode; redirection now uses the global setting. The redirect logic is centralized and uses a meta refresh tag for CSP compatibility instead of JavaScript. [1] [2] [3] [4]Testing Updates:
Changelog and Versioning:
Bug Fixes:
These changes collectively improve the plugin's flexibility, security, and user experience.