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

@@ -456,7 +456,7 @@ class WP_User {
var $filter = null;
/**
* PHP4 Constructor - Sets up the object properties.
* Constructor - Sets up the object properties.
*
* Retrieves the userdata and then assigns all of the data keys to direct
* properties of the object. Calls {@link WP_User::_init_caps()} after
@@ -470,7 +470,7 @@ class WP_User {
* @param int $blog_id Optional Blog ID, defaults to current blog.
* @return WP_User
*/
function WP_User( $id, $name = '', $blog_id = '' ) {
function __construct( $id, $name = '', $blog_id = '' ) {
if ( empty( $id ) && empty( $name ) )
return;