Ticket #54729: 54729.diff
File 54729.diff, 3.3 KB (added by , 3 years ago) |
---|
-
src/wp-includes/class-wp-user.php
178 178 } 179 179 180 180 /** 181 * Return only the main user fields181 * Returns only the main user fields 182 182 * 183 183 * @since 3.3.0 184 184 * @since 4.4.0 Added 'ID' as an alias of 'id' for the `$field` parameter. … … 389 389 } 390 390 391 391 /** 392 * Determine whether the user exists in the database.392 * Determines whether the user exists in the database. 393 393 * 394 394 * @since 3.4.0 395 395 * … … 400 400 } 401 401 402 402 /** 403 * Retrieve the value of a property or meta key.403 * Retrieves the value of a property or meta key. 404 404 * 405 405 * Retrieves from the users and usermeta table. 406 406 * … … 414 414 } 415 415 416 416 /** 417 * Determine whether a property or meta key is set417 * Determines whether a property or meta key is set 418 418 * 419 419 * Consults the users and usermeta tables. 420 420 * … … 428 428 } 429 429 430 430 /** 431 * Return an array representation.431 * Returns an array representation. 432 432 * 433 433 * @since 3.5.0 434 434 * … … 455 455 } 456 456 457 457 /** 458 * Set up capability object properties.458 * Sets up capability object properties. 459 459 * 460 460 * Will set the value for the 'cap_key' property to current database table 461 461 * prefix, followed by 'capabilities'. Will then check to see if the … … 529 529 } 530 530 531 531 /** 532 * Add role to user.532 * Adds role to user. 533 533 * 534 534 * Updates the user's meta data option with capabilities and roles. 535 535 * … … 563 563 } 564 564 565 565 /** 566 * Remove role from user.566 * Removes role from user. 567 567 * 568 568 * @since 2.0.0 569 569 * … … 591 591 } 592 592 593 593 /** 594 * Set the role of the user.594 * Sets the role of the user. 595 595 * 596 596 * This will remove the previous roles of the user and assign the user the 597 597 * new one. You can set the role to an empty string and it will remove all … … 651 651 } 652 652 653 653 /** 654 * Choose the maximum level the user has.654 * Chooses the maximum level the user has. 655 655 * 656 656 * Will compare the level from the $item parameter against the $max 657 657 * parameter. If the item is incorrect, then just the $max parameter value … … 678 678 } 679 679 680 680 /** 681 * Update the maximum user level for the user.681 * Updates the maximum user level for the user. 682 682 * 683 683 * Updates the 'user_level' user metadata (includes prefix that is the 684 684 * database table prefix) with the maximum user level. Gets the value from … … 695 695 } 696 696 697 697 /** 698 * Add capability and grant or deny access to capability.698 * Adds capability and grant or deny access to capability. 699 699 * 700 700 * @since 2.0.0 701 701 * … … 710 710 } 711 711 712 712 /** 713 * Remove capability from user.713 * Removes capability from user. 714 714 * 715 715 * @since 2.0.0 716 716 * … … 727 727 } 728 728 729 729 /** 730 * Remove all of the capabilities of the user.730 * Removes all of the capabilities of the user. 731 731 * 732 732 * @since 2.1.0 733 733 * … … 824 824 } 825 825 826 826 /** 827 * Convert numeric level to level capability name.827 * Converts numeric level to level capability name. 828 828 * 829 829 * Prepends 'level_' to level number. 830 830 * … … 838 838 } 839 839 840 840 /** 841 * Set the site to operate on. Defaults to the current site.841 * Sets the site to operate on. Defaults to the current site. 842 842 * 843 843 * @since 3.0.0 844 844 * @deprecated 4.9.0 Use WP_User::for_site()