🐛 Problem: - WordPress Media library not loaded in standalone mode - Error: 'wp.media is not available' - Image upload functionality broken ✅ Solution: - Added wp_enqueue_media() in render_standalone_admin() - Added wpApiSettings global for REST API compatibility - Print media-editor and media-audiovideo scripts - Print media-views and imgareaselect styles 📝 Changes: - StandaloneAdmin.php: - Enqueue media library - Output media styles in <head> - Output media scripts before app.js - Add wpApiSettings global 🎯 Result: - WordPress media library now available in standalone mode - Image upload works correctly - 'Choose from Media Library' button functional
6.3 KiB
6.3 KiB