Ticket #19756: 19756.002.diff
| File 19756.002.diff, 3.5 KB (added by , 14 years ago) |
|---|
-
wp-login.php
239 239 * 240 240 * @param string $key Hash to validate sending user's password 241 241 * @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 244 243 */ 245 244 function check_password_reset_key($key, $login) { 246 245 global $wpdb; … … 264 263 /** 265 264 * Handles resetting the user's password. 266 265 * 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 270 268 */ 271 269 function reset_password($user, $new_pass) { 272 270 do_action('password_reset', $user, $new_pass); -
wp-includes/user.php
164 164 * Number of posts written by a list of users. 165 165 * 166 166 * @since 3.0.0 167 * @param array $user_ids Array of user IDs. 167 * 168 * @param array $users Array of user IDs. 168 169 * @param string|array $post_type Optional. Post type to check. Defaults to post. 169 170 * @return array Amount of posts each user has written. 170 171 */ 171 function count_many_users_posts( $users, $post_type = 'post' ) {172 function count_many_users_posts( $users, $post_type = 'post' ) { 172 173 global $wpdb; 173 174 174 175 $count = array(); -
wp-includes/category-template.php
227 227 * @since 1.2.0 228 228 * 229 229 * @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) 231 231 * @return bool True if the current post is in any of the given categories. 232 232 */ 233 233 function in_category( $category, $post = null ) { … … 1050 1050 * @since 2.8 1051 1051 * 1052 1052 * @param int $term Optional. Term ID. Will use global term ID by default. 1053 * @param string $taxonomy Optional taxonomy name. Defaults to 'post_tag'. 1053 1054 * @return string Term description, available. 1054 1055 */ 1055 1056 function term_description( $term = 0, $taxonomy = 'post_tag' ) { … … 1156 1157 * 1157 1158 * @since 3.1.0 1158 1159 * 1159 * @param string|int|array $ tagOptional. 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. 1160 1161 * @param int|object $post Optional. Post to check instead of the current post. 1161 1162 * @return bool True if the current post has any of the given categories (or any category, if no category specified). 1162 1163 */ -
wp-includes/post.php
2887 2887 * 2888 2888 * @param int $post_id Post ID. 2889 2889 * @param string $tags The tags to set for the post, separated by commas. 2890 * @param string $taxonomy Taxonomy name. Defaults to 'post_tag'. 2890 2891 * @param bool $append If true, don't delete existing tags, just add on. If false, replace the tags with the new tags. 2891 2892 * @return mixed Array of affected term IDs. WP_Error or false on failure. 2892 2893 */