WordPress 3.0.5 (and 3.1 Release Candidate 4)

WordPress 3.0.5 is now available and is a security hardening update for all previous WordPress versions.

This security release is required if you have any untrusted user accounts, but it also comes with important security enhancements and hardening. All WordPress users are strongly encouraged to update.

Three point oh point five

Enhances security

Three point one comes soon

The release addresses a number of issues and provides two additional enhancements:

Two moderate security issues were fixed that could have allowed a Contributor- or Author-level user to gain further access to the site.

One information disclosure issue was addressed that could have allowed an Author-level user to view contents of posts they should not be able to see, such as draft or private posts.

Two security enhancements were added. One improved the security of any plugins which were not properly leveraging our security API. The other offers additional defense in depth against a vulnerability that was fixed in previous release.

Thanks to Nils Jueneman and Saddy for their private and responsible disclosures to security@wordpress.org for two of the issues. The others were reported or repaired by our security team.

Download 3.0.5 or update automatically from the Dashboard > Updates menu in your site’s admin area. Please update immediately.


WordPress 3.1 Release Candidate 4 is also now available.

The Release Candidate 4 build includes the security fixes and enhancements included in 3.0.5 and addresses about two dozen additional bugs. This includes fixes for:

  • Deleting a user and reassigning their posts to another user.
  • Marking multiple users or sites as spam in multisite.
  • PHP4 compatibility.

As outlined in previous RC posts, if you are testing the release candidate and think you’ve found a bug, there are a few ways to let us know:

To test WordPress 3.1, try the WordPress Beta Tester plugin (you’ll want “bleeding edge nightlies”). Or you can download the release candidate here (zip). If any new issues become known, you’ll be able to find them here.

After nearly five months of development and testing, we think we’re very close to a final release. Users and developers, please test your themes and plugins.

Download WordPress 3.1 RC4 or WordPress 3.0.5 now.

__return_zero

Definition:
function __return_zero() {}

Returns 0.
Useful for returning 0 to filters easily.

Source code

function __return_zero() {

	return 0;

}

4435

__return_true

Definition:
function __return_true() {}

Returns true.
Useful for returning true to filters easily.

Return values

returns:true

Source code

function __return_true() {

	return true;

}

4433

__return_false

Definition:
function __return_false() {}

Returns false.
Useful for returning false to filters easily.

Return values

returns:false

Source code

function __return_false() {

	return false;

}

4431