Changeset 39088
- Timestamp:
- 11/02/2016 05:54:27 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-roles.php
r39083 r39088 150 150 */ 151 151 public function reinit() { 152 _ _deprecated_function( __METHOD__, '4.7.0', 'new WP_Roles()' );152 _deprecated_function( __METHOD__, '4.7.0', 'new WP_Roles()' ); 153 153 $this->_init(); 154 154 } -
trunk/tests/phpunit/tests/user/capabilities.php
r39082 r39088 1655 1655 $wp_roles->add_role( $this->_role_test_wp_roles_init['role'], $this->_role_test_wp_roles_init['info']['name'], $this->_role_test_wp_roles_init['info']['capabilities'] ); 1656 1656 } 1657 1658 /** 1659 * @ticket 23016 1660 * @expectedDeprecated WP_Roles::reinit 1661 */ 1662 public function test_wp_roles_reinit_deprecated() { 1663 $wp_roles = new WP_Roles(); 1664 $wp_roles->reinit(); 1665 } 1657 1666 }
Note: See TracChangeset
for help on using the changeset viewer.