Files
WooNooW/includes/Admin
dwindown b61d74fb8e fix: Add WordPress media library support in standalone mode
🐛 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
2025-11-16 10:42:40 +07:00
..