Constructor cleanup. Props ocean90. fixes #16768

git-svn-id: https://develop.svn.wordpress.org/trunk@17771 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2011-04-29 20:05:12 +00:00
parent 54822700b8
commit 9730cb8d15
33 changed files with 54 additions and 122 deletions

View File

@@ -2970,7 +2970,7 @@ class WP_Query {
}
/**
* PHP4 type constructor.
* Constructor.
*
* Sets up the WordPress query, if parameter is not empty.
*
@@ -2980,7 +2980,7 @@ class WP_Query {
* @param string $query URL query string.
* @return WP_Query
*/
function WP_Query($query = '') {
function __construct($query = '') {
if ( ! empty($query) ) {
$this->query($query);
}