WordPress.org

Make WordPress Core

Ticket #16768: 16768.2.patch

File 16768.2.patch, 1.1 KB (added by hakre, 7 years ago)

some in wp-includes/capabilities.php

  • wp-includes/capabilities.php

     
    7373        var $use_db = true;
    7474
    7575        /**
    76          * PHP4 Constructor - Call {@link WP_Roles::_init()} method.
     76         * Constructor
    7777         *
    7878         * @since 2.0.0
    79          * @access public
    80          *
    81          * @return WP_Roles
    8279         */
    83         function WP_Roles() {
     80        function __construct() {
    8481                $this->_init();
    8582        }
    8683
     
    269266        var $capabilities;
    270267
    271268        /**
    272          * PHP4 Constructor - Set up object properties.
     269         * Constructor - Set up object properties.
    273270         *
    274271         * The list of capabilities, must have the key as the name of the capability
    275272         * and the value a boolean of whether it is granted to the role.
     
    279276         *
    280277         * @param string $role Role name.
    281278         * @param array $capabilities List of capabilities.
    282          * @return WP_Role
    283279         */
    284         function WP_Role( $role, $capabilities ) {
     280        function __construct( $role, $capabilities ) {
    285281                $this->name = $role;
    286282                $this->capabilities = $capabilities;
    287283        }