mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Coding Standards: Reformat some long apply_filters_deprecated() and do_action_deprecated() calls for better readability.
See #49542. git-svn-id: https://develop.svn.wordpress.org/trunk@48167 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -372,7 +372,12 @@ function map_meta_cap( $cap, $user_id, ...$args ) {
|
||||
* @param string $cap Capability name.
|
||||
* @param string[] $caps Array of the user's capabilities.
|
||||
*/
|
||||
$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}" );
|
||||
$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}"
|
||||
);
|
||||
}
|
||||
|
||||
if ( ! $allowed ) {
|
||||
|
||||
Reference in New Issue
Block a user