Code Modernisation: Replace `call_user_func_array()` in `wp-includes/capabilities.php` with a direct function call.
Props jrf. See #47678. Built from https://develop.svn.wordpress.org/trunk@46132 git-svn-id: http://core.svn.wordpress.org/trunk@45944 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
30fe3f5d4f
commit
d55f1f81c7
|
@ -579,8 +579,7 @@ function map_meta_cap( $cap, $user_id, ...$args ) {
|
||||||
// Handle meta capabilities for custom post types.
|
// Handle meta capabilities for custom post types.
|
||||||
global $post_type_meta_caps;
|
global $post_type_meta_caps;
|
||||||
if ( isset( $post_type_meta_caps[ $cap ] ) ) {
|
if ( isset( $post_type_meta_caps[ $cap ] ) ) {
|
||||||
$args = array_merge( array( $post_type_meta_caps[ $cap ], $user_id ), $args );
|
return map_meta_cap( $post_type_meta_caps[ $cap ], $user_id, ...$args );
|
||||||
return call_user_func_array( 'map_meta_cap', $args );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Block capabilities map to their post equivalent.
|
// Block capabilities map to their post equivalent.
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-alpha-46131';
|
$wp_version = '5.3-alpha-46132';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue