Make WordPress Core


Ignore:
Timestamp:
04/05/2011 05:25:08 PM (15 years ago)
Author:
ryan
Message:

Remove PHP4 constructors. Props hakre. see #16768

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/capabilities.php

    r16910 r17604  
    7474
    7575        /**
    76          * PHP4 Constructor - Call {@link WP_Roles::_init()} method.
    77          *
    78          * @since 2.0.0
    79          * @access public
    80          *
    81          * @return WP_Roles
    82          */
    83         function WP_Roles() {
     76         * Constructor
     77         *
     78         * @since 2.0.0
     79         */
     80        function __construct() {
    8481                $this->_init();
    8582        }
     
    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
     
    280277         * @param string $role Role name.
    281278         * @param array $capabilities List of capabilities.
    282          * @return WP_Role
    283          */
    284         function WP_Role( $role, $capabilities ) {
     279         */
     280        function __construct( $role, $capabilities ) {
    285281                $this->name = $role;
    286282                $this->capabilities = $capabilities;
Note: See TracChangeset for help on using the changeset viewer.