What Is New in WordPress 4.1
WordPress 4.1 introduces a streamlined writing experience, improved language support, and significant under-the-hood developer enhancements.
| Category | Key Changes |
|---|---|
| New Features | Twenty Fifteen theme, Distraction-free writing mode, Vine embeds, Language installer |
| Improvements | Complex query support, Template hierarchy, Customizer API, Login form |
| Developer | Plugin recommendations, Date/Time component, Customizer JavaScript API |
What makes the new Twenty Fifteen theme stand out?
Twenty Fifteen is a clean, blog-focused theme that puts your content front and center. It features a generous whitespace and a fluid layout that adapts to any screen size. The theme's design is inspired by the art of print, making it perfect for long-form reading.
How does the distraction-free writing mode work?
The new writing mode removes all distractions, fading out the admin UI to let you focus solely on your content. You can trigger it by clicking the icon in the toolbar when editing a post. This matters because it creates a much cleaner environment for drafting long articles without visual clutter.
What are the key developer improvements in this release?
WordPress 4.1 adds robust support for complex queries with meta, date, and tax relations. The WP_Date_Query now supports year, month, week, and dayofweek parameters, making date-based queries far more powerful.
The Customizer API was enhanced with panels and a new JavaScript base, allowing for more structured and dynamic theme options. In practice, this means developers can build more sophisticated and user-friendly theme customization experiences.
How has language support been improved?
You can now install language packs directly from the General Settings screen without needing to edit config files. The admin interface will automatically switch to your chosen language after installation. This is a huge usability win for non-English sites and multilingual installations.
FAQ
Does WordPress 4.1 change how I should write custom queries?
Yes, if you're doing advanced meta or date queries. You should now use the enhanced WP_Meta_Query and WP_Date_Query classes, which properly handle complex relationships and SQL injection vulnerabilities that were easy to introduce when writing raw SQL.
How do I add a panel to the Theme Customizer?
Use the new WP_Customize_Panel class. You can register it with the $wp_customize->add_panel() method and then assign sections to it, which helps organize numerous options into logical groups.
What's the deal with the new plugin installation framework?
The update introduces a way for plugins to recommend other plugins. You'll see this in action if a theme suggests installing specific plugins to unlock its full functionality. It uses a new TGMPA-inspired approach directly in core.
Are there any notable template hierarchy changes?
Yes, the hierarchy for embedding posts was added. When you request a post for embedding, WordPress will now look for embed-{post_type}-{post_format}.php and embed-{post_type}.php before falling back to embed.php.
Was the login form updated in any way?
The login and registration forms now have improved accessibility. The fieldsets were removed, and labels are now associated with their inputs using the for attribute, which is better for screen readers and general usability.