mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Remove PHP4 constructors. Props hakre. see #16768
git-svn-id: https://develop.svn.wordpress.org/trunk@17604 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -73,14 +73,11 @@ class WP_Roles {
|
||||
var $use_db = true;
|
||||
|
||||
/**
|
||||
* PHP4 Constructor - Call {@link WP_Roles::_init()} method.
|
||||
* Constructor
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @access public
|
||||
*
|
||||
* @return WP_Roles
|
||||
*/
|
||||
function WP_Roles() {
|
||||
function __construct() {
|
||||
$this->_init();
|
||||
}
|
||||
|
||||
@@ -269,7 +266,7 @@ class WP_Role {
|
||||
var $capabilities;
|
||||
|
||||
/**
|
||||
* PHP4 Constructor - Set up object properties.
|
||||
* Constructor - Set up object properties.
|
||||
*
|
||||
* The list of capabilities, must have the key as the name of the capability
|
||||
* and the value a boolean of whether it is granted to the role.
|
||||
@@ -279,9 +276,8 @@ class WP_Role {
|
||||
*
|
||||
* @param string $role Role name.
|
||||
* @param array $capabilities List of capabilities.
|
||||
* @return WP_Role
|
||||
*/
|
||||
function WP_Role( $role, $capabilities ) {
|
||||
function __construct( $role, $capabilities ) {
|
||||
$this->name = $role;
|
||||
$this->capabilities = $capabilities;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user