Changeset 32642 for trunk/src/wp-admin/includes/user.php
- Timestamp:
- 05/28/2015 09:40:27 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/user.php
r32025 r32642 29 29 */ 30 30 function edit_user( $user_id = 0 ) { 31 global $wp_roles;31 $wp_roles = wp_roles(); 32 32 $user = new stdClass; 33 33 if ( $user_id ) { … … 199 199 */ 200 200 function get_editable_roles() { 201 global $wp_roles; 202 203 $all_roles = $wp_roles->roles; 201 $all_roles = wp_roles()->roles; 204 202 205 203 /** … … 236 234 * 237 235 * @since 2.0.0 236 * 237 * @global wpdb $wpdb 238 238 * 239 239 * @param int $user_id User ID. … … 264 264 * 265 265 * @since 2.0.0 266 * 267 * @global wpdb $wpdb 266 268 * 267 269 * @param int $id User ID. … … 389 391 * @since 2.8.0 390 392 */ 393 /** 394 * 395 * @global int $user_ID 396 * 397 * @param false $errors Deprecated. 398 */ 391 399 function default_password_nag_handler($errors = false) { 392 400 global $user_ID; … … 425 433 /** 426 434 * @since 2.8.0 435 * 436 * @global string $pagenow 427 437 */ 428 438 function default_password_nag() {
Note: See TracChangeset
for help on using the changeset viewer.