WordPress.org

Make WordPress Core

Ticket #19756: 19756.002.diff

File 19756.002.diff, 3.5 KB (added by duck_, 6 years ago)
  • wp-login.php

     
    239239 *
    240240 * @param string $key Hash to validate sending user's password
    241241 * @param string $login The user login
    242  *
    243  * @return object|WP_Error
     242 * @return object|WP_Error User's database row on success, error object for invalid keys
    244243 */
    245244function check_password_reset_key($key, $login) {
    246245        global $wpdb;
     
    264263/**
    265264 * Handles resetting the user's password.
    266265 *
    267  * @uses $wpdb WordPress Database object
    268  *
    269  * @param string $key Hash to validate sending user's password
     266 * @param object $user The user
     267 * @param string $new_pass New password for the user in plaintext
    270268 */
    271269function reset_password($user, $new_pass) {
    272270        do_action('password_reset', $user, $new_pass);
  • wp-includes/user.php

     
    164164 * Number of posts written by a list of users.
    165165 *
    166166 * @since 3.0.0
    167  * @param array $user_ids Array of user IDs.
     167 *
     168 * @param array $users Array of user IDs.
    168169 * @param string|array $post_type Optional. Post type to check. Defaults to post.
    169170 * @return array Amount of posts each user has written.
    170171 */
    171 function count_many_users_posts($users, $post_type = 'post' ) {
     172function count_many_users_posts( $users, $post_type = 'post' ) {
    172173        global $wpdb;
    173174
    174175        $count = array();
  • wp-includes/category-template.php

     
    227227 * @since 1.2.0
    228228 *
    229229 * @param int|string|array $category Category ID, name or slug, or array of said.
    230  * @param int|object $_post Optional. Post to check instead of the current post. (since 2.7.0)
     230 * @param int|object $post Optional. Post to check instead of the current post. (since 2.7.0)
    231231 * @return bool True if the current post is in any of the given categories.
    232232 */
    233233function in_category( $category, $post = null ) {
     
    10501050 * @since 2.8
    10511051 *
    10521052 * @param int $term Optional. Term ID. Will use global term ID by default.
     1053 * @param string $taxonomy Optional taxonomy name. Defaults to 'post_tag'.
    10531054 * @return string Term description, available.
    10541055 */
    10551056function term_description( $term = 0, $taxonomy = 'post_tag' ) {
     
    11561157 *
    11571158 * @since 3.1.0
    11581159 *
    1159  * @param string|int|array $tag Optional. The category name/term_id/slug or array of them to check for.
     1160 * @param string|int|array $category Optional. The category name/term_id/slug or array of them to check for.
    11601161 * @param int|object $post Optional. Post to check instead of the current post.
    11611162 * @return bool True if the current post has any of the given categories (or any category, if no category specified).
    11621163 */
  • wp-includes/post.php

     
    28872887 *
    28882888 * @param int $post_id Post ID.
    28892889 * @param string $tags The tags to set for the post, separated by commas.
     2890 * @param string $taxonomy Taxonomy name. Defaults to 'post_tag'.
    28902891 * @param bool $append If true, don't delete existing tags, just add on. If false, replace the tags with the new tags.
    28912892 * @return mixed Array of affected term IDs. WP_Error or false on failure.
    28922893 */