mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 10:44:26 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user