Changeset 43520
- Timestamp:
- 07/23/2018 05:01:02 PM (6 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r43381 r43520 305 305 * the meta key value, and the object subtype respectively. 306 306 * 307 * @since 5.0.0307 * @since 4.9.8 308 308 * 309 309 * @param bool $allowed Whether the user can add the object meta. Default false. … … 351 351 * @since 4.6.0 As `auth_post_{$post_type}_meta_{$meta_key}`. 352 352 * @since 4.7.0 353 * @deprecated 5.0.0Use `auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}`353 * @deprecated 4.9.8 Use `auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}` 354 354 * 355 355 * @param bool $allowed Whether the user can add the object meta. Default false. … … 360 360 * @param string[] $caps Array of the user's capabilities. 361 361 */ 362 $allowed = apply_filters_deprecated( "auth_{$object_type}_{$object_subtype}_meta_{$meta_key}", array( $allowed, $meta_key, $object_id, $user_id, $cap, $caps ), ' 5.0.0', "auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}" );362 $allowed = apply_filters_deprecated( "auth_{$object_type}_{$object_subtype}_meta_{$meta_key}", array( $allowed, $meta_key, $object_id, $user_id, $cap, $caps ), '4.9.8', "auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}" ); 363 363 } 364 364 -
trunk/src/wp-includes/meta.php
r43385 r43520 975 975 * 976 976 * @since 3.1.3 977 * @since 5.0.0The `$object_subtype` parameter was added.977 * @since 4.9.8 The `$object_subtype` parameter was added. 978 978 * 979 979 * @param string $meta_key Meta key. … … 993 993 * the meta key value, and the object subtype respectively. 994 994 * 995 * @since 5.0.0995 * @since 4.9.8 996 996 * 997 997 * @param mixed $meta_value Meta value to sanitize. … … 1033 1033 * to support an array of data to attach to registered meta keys}. Previous arguments for 1034 1034 * `$sanitize_callback` and `$auth_callback` have been folded into this array. 1035 * @since 5.0.0The `$object_subtype` argument was added to the arguments array.1035 * @since 4.9.8 The `$object_subtype` argument was added to the arguments array. 1036 1036 * 1037 1037 * @param string $object_type Type of object this meta is registered to. … … 1149 1149 * 1150 1150 * @since 4.6.0 1151 * @since 5.0.0The `$object_subtype` parameter was added.1151 * @since 4.9.8 The `$object_subtype` parameter was added. 1152 1152 * 1153 1153 * @param string $object_type The type of object. … … 1168 1168 * 1169 1169 * @since 4.6.0 1170 * @since 5.0.0The `$object_subtype` parameter was added.1170 * @since 4.9.8 The `$object_subtype` parameter was added. 1171 1171 * 1172 1172 * @param string $object_type The type of object. … … 1217 1217 * 1218 1218 * @since 4.6.0 1219 * @since 5.0.0The `$object_subtype` parameter was added.1219 * @since 4.9.8 The `$object_subtype` parameter was added. 1220 1220 * 1221 1221 * @param string $object_type The type of object. Post, comment, user, term. … … 1301 1301 * Returns the object subtype for a given object ID of a specific type. 1302 1302 * 1303 * @since 5.0.01303 * @since 4.9.8 1304 1304 * 1305 1305 * @param string $object_type Type of object to request metadata for. (e.g. comment, post, term, user) … … 1354 1354 * type (post, comment, term, or user). 1355 1355 * 1356 * @since 5.0.01356 * @since 4.9.8 1357 1357 * 1358 1358 * @param string $object_subtype Empty string to override. -
trunk/src/wp-includes/post.php
r43392 r43520 1993 1993 * Registers a meta key for posts. 1994 1994 * 1995 * @since 5.0.01995 * @since 4.9.8 1996 1996 * 1997 1997 * @param string $post_type Post type to register a meta key for. Pass an empty string … … 2011 2011 * Unregisters a meta key for posts. 2012 2012 * 2013 * @since 5.0.02013 * @since 4.9.8 2014 2014 * 2015 2015 * @param string $post_type Post type the meta key is currently registered for. Pass -
trunk/src/wp-includes/rest-api/fields/class-wp-rest-comment-meta-fields.php
r43378 r43520 31 31 * Retrieves the object meta subtype. 32 32 * 33 * @since 5.0.033 * @since 4.9.8 34 34 * 35 35 * @return string 'comment' There are no subtypes. -
trunk/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php
r43378 r43520 28 28 * Retrieves the object meta subtype. 29 29 * 30 * @since 5.0.030 * @since 4.9.8 31 31 * 32 32 * @return string Subtype for the meta type, or empty string if no specific subtype. -
trunk/src/wp-includes/rest-api/fields/class-wp-rest-post-meta-fields.php
r43378 r43520 50 50 * Retrieves the object meta subtype. 51 51 * 52 * @since 5.0.052 * @since 4.9.8 53 53 * 54 54 * @return string Subtype for the meta type, or empty string if no specific subtype. -
trunk/src/wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php
r43378 r43520 50 50 * Retrieves the object meta subtype. 51 51 * 52 * @since 5.0.052 * @since 4.9.8 53 53 * 54 54 * @return string Subtype for the meta type, or empty string if no specific subtype. -
trunk/src/wp-includes/rest-api/fields/class-wp-rest-user-meta-fields.php
r43378 r43520 31 31 * Retrieves the object meta subtype. 32 32 * 33 * @since 5.0.033 * @since 4.9.8 34 34 * 35 35 * @return string 'user' There are no subtypes. -
trunk/src/wp-includes/taxonomy.php
r43386 r43520 1326 1326 * Registers a meta key for terms. 1327 1327 * 1328 * @since 5.0.01328 * @since 4.9.8 1329 1329 * 1330 1330 * @param string $taxonomy Taxonomy to register a meta key for. Pass an empty string … … 1344 1344 * Unregisters a meta key for terms. 1345 1345 * 1346 * @since 5.0.01346 * @since 4.9.8 1347 1347 * 1348 1348 * @param string $taxonomy Taxonomy the meta key is currently registered for. Pass
Note: See TracChangeset
for help on using the changeset viewer.