Ticket #16768: 16768.2.patch
| File 16768.2.patch, 1.1 KB (added by , 15 years ago) |
|---|
-
wp-includes/capabilities.php
73 73 var $use_db = true; 74 74 75 75 /** 76 * PHP4 Constructor - Call {@link WP_Roles::_init()} method.76 * Constructor 77 77 * 78 78 * @since 2.0.0 79 * @access public80 *81 * @return WP_Roles82 79 */ 83 function WP_Roles() {80 function __construct() { 84 81 $this->_init(); 85 82 } 86 83 … … 269 266 var $capabilities; 270 267 271 268 /** 272 * PHP4Constructor - Set up object properties.269 * Constructor - Set up object properties. 273 270 * 274 271 * The list of capabilities, must have the key as the name of the capability 275 272 * and the value a boolean of whether it is granted to the role. … … 279 276 * 280 277 * @param string $role Role name. 281 278 * @param array $capabilities List of capabilities. 282 * @return WP_Role283 279 */ 284 function WP_Role( $role, $capabilities ) {280 function __construct( $role, $capabilities ) { 285 281 $this->name = $role; 286 282 $this->capabilities = $capabilities; 287 283 }