WordPress Release: 4.1.0

Tag Name: 4.1.0

Release Date: 12/18/2014

WordPress LogoWordPress

World's most popular open-source content management system powering over 40% of all websites. Offers extensive plugin ecosystem, themes, and robust community support for blogs, e-commerce, and corporate websites. Highly customizable and scalable platform suitable for beginners and advanced developers.

TL;DR

WordPress 4.1 "Dinah" introduces significant improvements to the writing experience with a new distraction-free writing mode, enhanced media management capabilities, and the elegant Twenty Fifteen theme. This release focuses on making content creation more seamless while improving performance and fixing numerous bugs. Key highlights include a redesigned distraction-free writing mode that fades out distractions as you write, improved focus on the editor, better media organization with grid view, and a new mobile-first default theme.

Highlight of the Release

    • New distraction-free writing mode that fades out UI elements as you write
    • Introduction of Twenty Fifteen, a clean, mobile-first default theme
    • Improved media management with grid view and better organization tools
    • Enhanced inline image editing capabilities directly in the editor
    • New session management with ability to log out of all sessions
    • Plugin recommendations feature in the plugin installer
    • Improved focus on the editor with less UI distractions

Migration Guide

Upgrading to WordPress 4.1

WordPress 4.1 doesn't introduce any major breaking changes that would require significant migration efforts. However, there are a few things to be aware of:

Theme Developers

  • If your theme uses the editor-expand feature, be aware that the distraction-free writing mode has been completely redesigned. You may need to update any custom styling or JavaScript that interacts with this feature.
  • The new Twenty Fifteen theme uses a mobile-first approach. If you're creating child themes based on Twenty Fifteen, ensure your designs follow this approach.

Plugin Developers

  • The MediaElement library has been updated to version 2.16.2. If your plugin extends or modifies MediaElement functionality, test thoroughly with the new version.
  • TinyMCE has been updated to version 4.1.7. If your plugin extends the editor, test to ensure compatibility.
  • Several hook DocBlocks have been updated to use backtick-escaping for inline code. While this doesn't affect functionality, it's a good practice to follow in your own plugins.

Site Administrators

  • If you're using custom session management or authentication plugins, test them thoroughly with the new session management features.
  • If you have heavily customized the media library interface, test with the new grid view to ensure compatibility.

No database schema changes were introduced in this release, so the upgrade process should be smooth for most users.

Upgrade Recommendations

Recommendation: Upgrade as soon as possible.

WordPress 4.1 brings significant improvements to the writing experience, media management, and overall user interface without introducing major breaking changes. The new features and bug fixes provide substantial benefits for all WordPress users.

The update process is straightforward and should not cause any issues for most sites. As always, it's recommended to:

  1. Back up your site before upgrading
  2. Test the update on a staging environment if possible
  3. Check compatibility of your themes and plugins
  4. Proceed with the update during a low-traffic period

For sites with custom themes or plugins that heavily modify the editor or media library, additional testing is recommended to ensure compatibility with the new distraction-free writing mode and media grid view.

Given the number of bug fixes and improvements in this release, the benefits of upgrading outweigh the minimal risks for most WordPress installations.

Bug Fixes

Media and Editor Fixes

  • Fixed an issue where deleting media grid attachments would remove the model before the server responded
  • Fixed an edge-case in media cropping where selection and destination are the same size
  • Adjusted RegEx in wp_check_filetype() to be aware of query strings in URLs
  • Fixed issues with multiple audio/video players on the same page, now pausing other players when one plays
  • Fixed the width of the background vignette in the plugin info modal
  • Corrected the position of the search field in the media modal and plugin screens
  • Fixed issues with the editor losing focus when typing

Theme and UI Fixes

  • Fixed list indentation inside blockquotes in Twenty Fifteen
  • Corrected avatar styling in Twenty Fifteen
  • Fixed stylesheet dependencies in Twenty Fifteen
  • Removed unused styles in Twenty Fifteen
  • Fixed menu shakiness when over-scrolling in Chrome and Safari on MacOS
  • Prevented scrolling beneath modals on mobile devices
  • Fixed the position of admin toolbar submenus on small viewports
  • Fixed issues with buttons in the publish meta box

Database and Core Fixes

  • Fixed a fatal error in WPDB Unit Tests when the mbstring extension isn't activated
  • Ensured uniqueness when returning page lists in get_page_children()
  • Fixed issues with WP_Query::get_queried_object() and tax query clauses
  • Fixed issues with get_term_by() caching
  • Fixed issues with WP_Meta_Query and EXISTS/NOT EXISTS operators
  • Fixed issues with upload_is_user_over_quota() and related functions

Other Fixes

  • Fixed issues with square brackets in URLs when sanitized for redirects
  • Fixed issues with the Iris color picker for multiple pickers on the same page
  • Fixed issues with autofocusing text fields on mobile devices
  • Fixed issues with the revisions interface display
  • Fixed issues with the Customizer background image controls

New Features

Distraction-Free Writing Mode

The distraction-free writing mode has been completely redesigned to provide a more seamless experience. Instead of switching to a completely different view, the new implementation gradually fades out distractions as you begin to write and focus on your content. UI elements fade back in when you move your cursor away from the content area, making it easy to access tools when needed.

Twenty Fifteen Theme

WordPress 4.1 introduces Twenty Fifteen, a clean, blog-focused theme designed for clarity. It uses a mobile-first approach with a responsive design that looks great on any device. The theme features Google's Noto Serif and Sans fonts, which provide excellent typography and language support.

Media Management Improvements

The media library now includes a grid view that makes it easier to browse and manage your media files. The new view provides a more visual way to work with media, showing thumbnails in a grid layout that can be filtered and sorted.

Inline Image Editing

You can now make quick edits to images directly in the editor. The new image toolbar appears when you select an image in the visual editor, allowing you to make alignment changes, add links, or edit the image without opening a separate dialog.

Log Out Everywhere

A new session management feature allows users to log out of all sessions across all devices. This is particularly useful if you've forgotten to log out somewhere or suspect unauthorized access to your account.

Plugin Recommendations

The plugin installer now includes a "Recommended" tab that suggests plugins based on those you already have installed. This makes it easier to discover useful plugins that complement your existing setup.

Focus on Writing

Several improvements have been made to enhance the writing experience, including better focus on the editor and less UI distractions. The editor now maintains focus when typing, preventing unexpected jumps or distractions.

Security Updates

No major security fixes were explicitly mentioned in the release notes. However, as with all WordPress updates, this release includes various security hardening measures and fixes for potential vulnerabilities that weren't specifically called out in the commit messages.

Performance Improvements

Media Library Performance

The new grid view in the media library provides a more efficient way to browse and manage media files. The implementation uses modern JavaScript techniques to load thumbnails on demand, reducing initial load time and improving overall performance.

Editor Performance

The editor has been optimized to maintain focus and prevent unnecessary reflows and repaints. This results in a smoother typing experience, especially on mobile devices or less powerful computers.

Theme Updates

Twenty Fifteen has been optimized for performance with clean, efficient code. The theme uses proper stylesheet dependencies and removes unused styles to minimize CSS overhead.

Customizer Improvements

The Customizer has been optimized with better JavaScript organization and performance improvements. Controls are now loaded more efficiently, and the preview updates more smoothly.

Database Query Optimization

Several database queries have been optimized, particularly around term handling and metadata queries. This results in faster page loads, especially for sites with large numbers of terms or custom fields.

Impact Summary

WordPress 4.1 "Dinah" represents a significant enhancement to the content creation experience in WordPress. The redesigned distraction-free writing mode transforms how users interact with the editor, providing a more immersive writing environment without sacrificing access to tools. This change alone makes the update worthwhile for content creators.

The introduction of Twenty Fifteen as the new default theme brings a clean, typography-focused design that works beautifully across all devices. Its mobile-first approach reflects the growing importance of mobile browsing and content consumption.

Media management sees substantial improvements with the new grid view, making it easier to visually browse and organize media files. Combined with the inline image editing capabilities in the editor, this creates a more streamlined workflow for working with media.

For administrators and site owners, the new session management features provide better security control, while plugin recommendations help discover useful extensions. The numerous bug fixes and performance improvements ensure a more stable and efficient WordPress experience overall.

This release maintains WordPress's commitment to backward compatibility while introducing meaningful enhancements that benefit all types of users. The focus on the writing experience reinforces WordPress's core strength as a content publishing platform.

Statistics:

File Changed300
Line Additions8,248
Line Deletions3,122
Line Changes11,370
Total Commits250

User Affected:

  • Enhanced distraction-free writing mode that fades out UI elements as you write
  • Improved focus on the editor with less UI distractions
  • Better media management with grid view and improved organization tools
  • New inline image editing capabilities directly in the editor

Contributors:

pentoDrewAPicturestaylorazaozzocean90johnbillionboonebgorgesianstewarthelenjeremyfeltSergeyBiryukovnacinmarkjaquithdd32