- Implement singleton pattern for HVAC_Enhanced_Settings to prevent duplicate initialization - Fix jQuery selector error by checking for valid hash selectors before using $(href) - Add default email templates with professional copy for trainer notifications - Update plugin version to 1.0.1 for cache busting - Remove duplicate Enhanced Settings initialization from HVAC_Community_Events - Add force cache refresh suffix to admin scripts This resolves the duplicate content issue on email templates page and fixes JavaScript errors in the admin interface. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
46 lines
No EOL
1.6 KiB
Bash
Executable file
46 lines
No EOL
1.6 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
echo "=== Testing Shortcode Rendering on Staging ==="
|
|
echo ""
|
|
|
|
# Test master dashboard page
|
|
echo "1. Testing Master Dashboard Page..."
|
|
response=$(curl -s https://upskill-staging.measurequick.com/master-trainer/dashboard/)
|
|
if echo "$response" | grep -q "\[hvac_master_dashboard\]"; then
|
|
echo "❌ Master dashboard shortcode NOT rendering (raw shortcode found)"
|
|
else
|
|
if echo "$response" | grep -q "Master Trainer Dashboard"; then
|
|
echo "✅ Master dashboard shortcode IS rendering properly"
|
|
else
|
|
echo "⚠️ Master dashboard page content unclear - needs manual check"
|
|
fi
|
|
fi
|
|
|
|
echo ""
|
|
echo "2. Testing Login Page..."
|
|
response=$(curl -s https://upskill-staging.measurequick.com/training-login/)
|
|
if echo "$response" | grep -q "\[hvac_community_login\]"; then
|
|
echo "❌ Login shortcode NOT rendering (raw shortcode found)"
|
|
else
|
|
if echo "$response" | grep -q "hvac-login-form"; then
|
|
echo "✅ Login shortcode IS rendering properly"
|
|
else
|
|
echo "⚠️ Login page content unclear - needs manual check"
|
|
fi
|
|
fi
|
|
|
|
echo ""
|
|
echo "3. Testing Trainer Dashboard..."
|
|
response=$(curl -s https://upskill-staging.measurequick.com/trainer/dashboard/)
|
|
if echo "$response" | grep -q "\[hvac_dashboard\]"; then
|
|
echo "❌ Dashboard shortcode NOT rendering (raw shortcode found)"
|
|
else
|
|
if echo "$response" | grep -q "Trainer Dashboard"; then
|
|
echo "✅ Dashboard shortcode IS rendering properly"
|
|
else
|
|
echo "⚠️ Dashboard page content unclear - needs manual check"
|
|
fi
|
|
fi
|
|
|
|
echo ""
|
|
echo "=== Shortcode Test Complete ===" |