Changeset 17604
- Timestamp:
- 04/05/2011 05:25:08 PM (15 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 4 edited
-
cache.php (modified) (1 diff)
-
capabilities.php (modified) (3 diffs)
-
class.wp-dependencies.php (modified) (1 diff)
-
wp-db.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/cache.php
r16469 r17604 458 458 459 459 /** 460 * PHP4 constructor; Calls PHP 5 style constructor461 *462 * @since 2.0.0463 *464 * @return WP_Object_Cache465 */466 function WP_Object_Cache() {467 return $this->__construct();468 }469 470 /**471 460 * Sets up object properties; PHP 5 style constructor 472 461 * -
trunk/wp-includes/capabilities.php
r16910 r17604 74 74 75 75 /** 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() { 84 81 $this->_init(); 85 82 } … … 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 … … 280 277 * @param string $role Role name. 281 278 * @param array $capabilities List of capabilities. 282 * @return WP_Role 283 */ 284 function WP_Role( $role, $capabilities ) { 279 */ 280 function __construct( $role, $capabilities ) { 285 281 $this->name = $role; 286 282 $this->capabilities = $capabilities; -
trunk/wp-includes/class.wp-dependencies.php
r16469 r17604 25 25 var $groups = array(); 26 26 var $group = 0; 27 28 function WP_Dependencies() {29 $args = func_get_args();30 call_user_func_array( array(&$this, '__construct'), $args );31 }32 33 function __construct() {}34 27 35 28 /** -
trunk/wp-includes/wp-db.php
r17546 r17604 461 461 */ 462 462 var $func_call; 463 464 /**465 * Connects to the database server and selects a database466 *467 * PHP4 compatibility layer for calling the PHP5 constructor.468 *469 * @uses wpdb::__construct() Passes parameters and returns result470 * @since 0.71471 *472 * @param string $dbuser MySQL database user473 * @param string $dbpassword MySQL database password474 * @param string $dbname MySQL database name475 * @param string $dbhost MySQL database host476 */477 function wpdb( $dbuser, $dbpassword, $dbname, $dbhost ) {478 return $this->__construct( $dbuser, $dbpassword, $dbname, $dbhost );479 }480 463 481 464 /**
Note: See TracChangeset
for help on using the changeset viewer.