Ticket #44751: 44751.diff
| File 44751.diff, 9.1 KB (added by , 8 years ago) |
|---|
-
src/wp-includes/class-wp-term-query.php
172 172 * Can be used in conjunction with `$meta_value`. Default empty. 173 173 * @type string $meta_value Limit terms to those matching a specific metadata value. 174 174 * Usually used in conjunction with `$meta_key`. Default empty. 175 * @type string $meta_type Type of object metadata is for (e.g., comment, post, or user).175 * @type string $meta_type Type of object metadata is for (e.g., comment, post, term, or user). 176 176 * Default empty. 177 177 * @type string $meta_compare Comparison operator to test the 'meta_value'. Default empty. 178 178 * } -
src/wp-includes/meta.php
17 17 * 18 18 * @global wpdb $wpdb WordPress database abstraction object. 19 19 * 20 * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)20 * @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user) 21 21 * @param int $object_id ID of the object metadata is for 22 22 * @param string $meta_key Metadata key 23 23 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. … … 57 57 * Filters whether to add metadata of a specific type. 58 58 * 59 59 * The dynamic portion of the hook, `$meta_type`, refers to the meta 60 * object type (comment, post, or user). Returning a non-null value60 * object type (comment, post, term, or user). Returning a non-null value 61 61 * will effectively short-circuit the function. 62 62 * 63 63 * @since 3.1.0 … … 90 90 * Fires immediately before meta of a specific type is added. 91 91 * 92 92 * The dynamic portion of the hook, `$meta_type`, refers to the meta 93 * object type (comment, post, or user).93 * object type (comment, post, term, or user). 94 94 * 95 95 * @since 3.1.0 96 96 * … … 120 120 * Fires immediately after meta of a specific type is added. 121 121 * 122 122 * The dynamic portion of the hook, `$meta_type`, refers to the meta 123 * object type (comment, post, or user).123 * object type (comment, post, term, or user). 124 124 * 125 125 * @since 2.9.0 126 126 * … … 142 142 * 143 143 * @global wpdb $wpdb WordPress database abstraction object. 144 144 * 145 * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)145 * @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user) 146 146 * @param int $object_id ID of the object metadata is for 147 147 * @param string $meta_key Metadata key 148 148 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. … … 183 183 * Filters whether to update metadata of a specific type. 184 184 * 185 185 * The dynamic portion of the hook, `$meta_type`, refers to the meta 186 * object type (comment, post, or user). Returning a non-null value186 * object type (comment, post, term, or user). Returning a non-null value 187 187 * will effectively short-circuit the function. 188 188 * 189 189 * @since 3.1.0 … … 235 235 * Fires immediately before updating metadata of a specific type. 236 236 * 237 237 * The dynamic portion of the hook, `$meta_type`, refers to the meta 238 * object type (comment, post, or user).238 * object type (comment, post, term, or user). 239 239 * 240 240 * @since 2.9.0 241 241 * … … 273 273 * Fires immediately after updating metadata of a specific type. 274 274 * 275 275 * The dynamic portion of the hook, `$meta_type`, refers to the meta 276 * object type (comment, post, or user).276 * object type (comment, post, term, or user). 277 277 * 278 278 * @since 2.9.0 279 279 * … … 309 309 * 310 310 * @global wpdb $wpdb WordPress database abstraction object. 311 311 * 312 * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)312 * @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user) 313 313 * @param int $object_id ID of the object metadata is for 314 314 * @param string $meta_key Metadata key 315 315 * @param mixed $meta_value Optional. Metadata value. Must be serializable if non-scalar. If specified, only delete … … 349 349 * Filters whether to delete metadata of a specific type. 350 350 * 351 351 * The dynamic portion of the hook, `$meta_type`, refers to the meta 352 * object type (comment, post, or user). Returning a non-null value352 * object type (comment, post, term, or user). Returning a non-null value 353 353 * will effectively short-circuit the function. 354 354 * 355 355 * @since 3.1.0 … … 397 397 * Fires immediately before deleting metadata of a specific type. 398 398 * 399 399 * The dynamic portion of the hook, `$meta_type`, refers to the meta 400 * object type (comment, post, or user).400 * object type (comment, post, term, or user). 401 401 * 402 402 * @since 3.1.0 403 403 * … … 440 440 * Fires immediately after deleting metadata of a specific type. 441 441 * 442 442 * The dynamic portion of the hook name, `$meta_type`, refers to the meta 443 * object type (comment, post, or user).443 * object type (comment, post, term, or user). 444 444 * 445 445 * @since 2.9.0 446 446 * … … 471 471 * 472 472 * @since 2.9.0 473 473 * 474 * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)474 * @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user) 475 475 * @param int $object_id ID of the object metadata is for 476 476 * @param string $meta_key Optional. Metadata key. If not specified, retrieve all metadata for 477 477 * the specified object. … … 494 494 * Filters whether to retrieve metadata of a specific type. 495 495 * 496 496 * The dynamic portion of the hook, `$meta_type`, refers to the meta 497 * object type (comment, post, or user). Returning a non-null value497 * object type (comment, post, term, or user). Returning a non-null value 498 498 * will effectively short-circuit the function. 499 499 * 500 500 * @since 3.1.0 … … 545 545 * 546 546 * @since 3.3.0 547 547 * 548 * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)548 * @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user) 549 549 * @param int $object_id ID of the object metadata is for 550 550 * @param string $meta_key Metadata key. 551 551 * @return bool True of the key is set, false if not. … … 630 630 * 631 631 * @global wpdb $wpdb WordPress database abstraction object. 632 632 * 633 * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)633 * @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user) 634 634 * @param int $meta_id ID for a specific meta row 635 635 * @param string $meta_value Metadata value 636 636 * @param string $meta_key Optional, you can provide a meta key to update it … … 813 813 * 814 814 * @global wpdb $wpdb WordPress database abstraction object. 815 815 * 816 * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)816 * @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user) 817 817 * @param int|array $object_ids Array or comma delimited list of object IDs to update cache for 818 818 * @return array|false Metadata cache for the specified objects, or false on failure. 819 819 */ … … 931 931 * 932 932 * @global wpdb $wpdb WordPress database abstraction object. 933 933 * 934 * @param string $type Type of object to get metadata table for (e.g., comment, post, or user)934 * @param string $type Type of object to get metadata table for (e.g., comment, post, term, or user) 935 935 * @return string|false Metadata table name, or false if no metadata table exists 936 936 */ 937 937 function _get_meta_table( $type ) { … … 952 952 * @since 3.1.3 953 953 * 954 954 * @param string $meta_key Meta key. 955 * @param string|null $meta_type Optional. Type of object metadata is for (e.g., comment, post, or user).955 * @param string|null $meta_type Optional. Type of object metadata is for (e.g., comment, post, term, or user). 956 956 * @return bool Whether the meta key is considered protected. 957 957 */ 958 958 function is_protected_meta( $meta_key, $meta_type = null ) { … … 965 965 * 966 966 * @param bool $protected Whether the key is considered protected. 967 967 * @param string $meta_key Meta key. 968 * @param string|null $meta_type Type of object metadata is for (e.g., comment, post, or user).968 * @param string|null $meta_type Type of object metadata is for (e.g., comment, post, term, or user). 969 969 */ 970 970 return apply_filters( 'is_protected_meta', $protected, $meta_key, $meta_type ); 971 971 } … … 1007 1007 * Filters the sanitization of a specific meta key of a specific meta type. 1008 1008 * 1009 1009 * The dynamic portions of the hook name, `$meta_type`, and `$meta_key`, 1010 * refer to the metadata object type (comment, post, or user) and the meta1010 * refer to the metadata object type (comment, post, term, or user) and the meta 1011 1011 * key value, respectively. 1012 1012 * 1013 1013 * @since 3.3.0