upskill-event-manager/scripts
bengizmo dcc1598e28 Implement comprehensive legacy URL redirect handling
- Added pre_get_posts hook to intercept legacy page queries
- Force 404 for legacy URLs to prevent WordPress from serving wrong pages
- Enhanced redirect handling to catch 404s that should redirect
- Moved template_redirect priority to 1 (very early)
- Ensures legacy URLs like /certificate-reports/ redirect properly

This follows WordPress best practices by intercepting queries early
in the request lifecycle before page templates are loaded.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-28 19:50:10 -03:00
..
assign-page-templates.sh Fix legacy URL redirects being intercepted by access control 2025-07-28 19:45:43 -03:00
check-page-existence.sh Implement comprehensive legacy URL redirect handling 2025-07-28 19:50:10 -03:00
check-page-templates.sh Fix legacy URL redirects being intercepted by access control 2025-07-28 19:45:43 -03:00
debug-shortcode.sh fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
deploy-to-staging.sh fix: Ensure trainer registration page is publicly accessible 2025-07-28 10:30:54 -03:00
deploy.sh fix: Properly handle SSH variable expansion in deployment script 2025-07-24 13:49:36 -03:00
fix-all-constants.sh fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
fix-constants.sh fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
fix-page-shortcodes.sh Fix legacy URL redirects being intercepted by access control 2025-07-28 19:45:43 -03:00
fix-websocket-proxy.sh fix: Ensure trainer registration page is publicly accessible 2025-07-28 10:30:54 -03:00
import-trainer-csv.php fix: Ensure import script sets correct hvac_trainer role for all users 2025-06-18 12:26:06 -03:00
list-and-fix-pages.sh Fix legacy URL redirects being intercepted by access control 2025-07-28 19:45:43 -03:00
pre-deployment-check.sh fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
README-import.md fix: Ensure import script sets correct hvac_trainer role for all users 2025-06-18 12:26:06 -03:00
remove-debug-logs.sh fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
test-staging-errors.sh fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
validate-templates.sh feat: Implement trainer approval workflow with status management 2025-07-28 12:38:34 -03:00
verify-css-staging.sh fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
verify-page-structure.sh fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00
verify-plugin-fixes.sh fix: Ensure trainer registration page is publicly accessible 2025-07-28 10:30:54 -03:00
verify-shortcodes-staging.sh fix: Resolve duplicate initialization and jQuery selector errors 2025-07-28 17:58:39 -03:00