Changes in trunk/wp-includes/capabilities.php [16910:18200]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r16910 r18200 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; … … 461 457 462 458 /** 463 * PHP4Constructor - Sets up the object properties.459 * Constructor - Sets up the object properties. 464 460 * 465 461 * Retrieves the userdata and then assigns all of the data keys to direct … … 475 471 * @return WP_User 476 472 */ 477 function WP_User( $id, $name = '', $blog_id = '' ) {473 function __construct( $id, $name = '', $blog_id = '' ) { 478 474 479 475 if ( empty( $id ) && empty( $name ) ) … … 825 821 $author_data = get_userdata( $user_id ); 826 822 $post = get_post( $args[0] ); 823 824 if ( 'revision' == $post->post_type ) { 825 $post = get_post( $post->post_parent ); 826 } 827 827 828 $post_type = get_post_type_object( $post->post_type ); 828 829 … … 870 871 $author_data = get_userdata( $user_id ); 871 872 $post = get_post( $args[0] ); 873 874 if ( 'revision' == $post->post_type ) { 875 $post = get_post( $post->post_parent ); 876 } 877 872 878 $post_type = get_post_type_object( $post->post_type ); 873 879 … … 914 920 $author_data = get_userdata( $user_id ); 915 921 $post = get_post( $args[0] ); 922 923 if ( 'revision' == $post->post_type ) { 924 $post = get_post( $post->post_parent ); 925 } 926 916 927 $post_type = get_post_type_object( $post->post_type ); 917 928
Note: See TracChangeset
for help on using the changeset viewer.