π¨ Major Features
Media Layout System
- Three Layout Options: Choose between Square, Narrow/Vertical, and Wide/Horizontal layouts for both images and videos
- Consistent Sizing: Videos and images now share the same layout constraints
- Square/Narrow: 50% width with aspect ratio preservation
- Wide: 66% width with aspect ratio preservation
- Smart Aspect Ratio: Automatic aspect ratio detection and preservation for media files
Editor UI Improvements
- Enhanced Button Styling: Modernized buttons with improved hover effects and animations
- Better Touch Targets: Increased button sizes and padding for improved usability
- Visual Feedback: Added smooth transitions and micro-interactions throughout the editor
- Optimized Layout: Better spacing and organization of media controls
Localization
- Chinese Translation: Added "δ»URLζε ₯" translation for "insert from URL"
- Compiled Language Files: Updated .mo files for immediate translation availability
π Bug Fixes
- Fixed horizontal image layout not maintaining aspect ratio
- Fixed video width specificity issues in CSS
- Fixed video thumbnail display blocking editor buttons
- Fixed API response overwriting page content
- Fixed 500 errors from wp_get_attachment_image_src returning false
- Fixed media upload field name mismatches (block β square)
π§ Technical Improvements
- Expanded supported MIME types for video uploads (MP4, MOV, M4V, WebM, OGG)
- Enhanced error handling for missing files in media upload API
- Improved CSS specificity and organization
- Better video metadata extraction (aspectratio, cover)
π¦ Installation
Upload the theme to your WordPress site and activate it through the WordPress admin panel.
π Credits
Moments - A WordPress theme for sharing life's moments