upskill-event-manager/scripts/test-css-enqueue.php
bengizmo 993a820a84 feat: Add comprehensive development artifacts to repository
- Add 26 documentation files including test reports, deployment guides, and troubleshooting documentation
- Include 3 CSV data files for trainer imports and user registration tracking
- Add 43 JavaScript test files covering mobile optimization, Safari compatibility, and E2E testing
- Include 18 PHP utility files for debugging, geocoding, and data analysis
- Add 12 shell scripts for deployment verification, user management, and database operations
- Update .gitignore with whitelist patterns for development files, documentation, and CSV data

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-11 12:26:11 -03:00

35 lines
No EOL
1 KiB
PHP

<?php
// Test CSS enqueue for login page
// Load WordPress
require_once '/home/974670.cloudwaysapps.com/uberrxmprk/public_html/wp-load.php';
// Get the login page
$page = get_page_by_path('training-login');
if (!$page) {
echo "Login page not found\n";
exit;
}
// Set up global post
$GLOBALS['post'] = $page;
$GLOBALS['wp_query']->queried_object = $page;
$GLOBALS['wp_query']->queried_object_id = $page->ID;
// Trigger enqueue scripts
do_action('wp_enqueue_scripts');
// Check enqueued styles
global $wp_styles;
echo "Enqueued styles:\n";
foreach($wp_styles->queue as $handle) {
if (strpos($handle, 'hvac') !== false || strpos($handle, 'community') !== false) {
$style = $wp_styles->registered[$handle];
echo "- $handle: " . $style->src . "\n";
}
}
// Check if shortcode is detected
echo "\nShortcode check:\n";
echo "has_shortcode: " . (has_shortcode($page->post_content, 'hvac_community_login') ? 'YES' : 'NO') . "\n";
echo "Page content: " . substr($page->post_content, 0, 100) . "...\n";