WordPress Release: 4.0.3

Tag Name: 4.0.3

Release Date: 4/23/2015

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.0.3 Release

WordPress 4.0.3 is a critical maintenance release that fixes a database-related bug affecting write queries with non-ASCII characters in certain character sets. This bug could cause all write operations to fail, potentially breaking content creation and updates on affected sites. This release is essential for all WordPress 4.0.x users to ensure proper database functionality.

Highlight of the Release

    • Fixed critical database bug affecting write queries with non-ASCII characters
    • Resolved issues with wpdb::strip_invalid_text() returning incorrect data structure
    • Improved compatibility with various character sets in database operations

Migration Guide

No migration steps are required for this update. This is a straightforward bug fix that doesn't require any changes to your site configuration or content.

To update to WordPress 4.0.3:

  1. Back up your website files and database before updating
  2. Update through the WordPress admin dashboard, or
  3. Download the update and perform a manual installation

After updating, no additional configuration changes are needed.

Upgrade Recommendations

Priority: High

All WordPress 4.0.x users should update to version 4.0.3 as soon as possible. This release fixes a critical database bug that could prevent write operations from completing successfully when using non-ASCII characters in certain character sets.

The issue is particularly important for:

  • Multilingual sites
  • Sites using non-Latin alphabets
  • Any site where content may contain special characters or non-ASCII text

This is a maintenance release with no new features, focusing solely on fixing this critical bug, so the update process should be straightforward with minimal risk of compatibility issues.

Bug Fixes

Database Write Query Fix

Fixed a critical issue in the WordPress database handling where wpdb::strip_invalid_text() was returning an incorrect data structure when sanity checking strings by sending them to MySQL for conversion checks. This bug was causing all write queries to fail for some character sets when the query contained non-ASCII characters.

This fix ensures that database write operations properly handle non-ASCII characters across various character sets, resolving issues where content creation or updates might fail.

New Features

No new features were introduced in this maintenance release. WordPress 4.0.3 focuses exclusively on fixing a critical database-related bug.

Security Updates

No security fixes were explicitly mentioned in this maintenance release. The primary focus was on resolving the database functionality issue.

Performance Improvements

No specific performance improvements were included in this release. The focus was on fixing the critical database functionality bug.

Impact Summary

WordPress 4.0.3 addresses a significant database handling issue that could prevent content from being saved when it contains non-ASCII characters. This bug had the potential to severely impact site functionality, particularly for multilingual sites or those using special characters.

The fix corrects how WordPress handles character validation during database write operations, ensuring that the proper data structure is returned from wpdb::strip_invalid_text(). This change restores reliable database write functionality across all supported character sets.

While this is a targeted fix for a specific issue, its impact is substantial for affected users who were experiencing database write failures. The update ensures consistent database behavior regardless of the character set being used, improving overall WordPress stability and reliability.

Statistics:

File Changed6
Line Additions19
Line Deletions8
Line Changes27
Total Commits3

User Affected:

  • Can now successfully perform database write operations that were previously failing
  • Will experience improved site stability and functionality
  • No longer need to implement workarounds for failed database operations

Contributors:

pentohelen