Changeset 39957 for branches/4.7/src/wp-includes/rest-api.php
- Timestamp:
- 01/26/2017 01:46:54 PM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-includes/rest-api.php
r39401 r39957 47 47 } 48 48 49 if ( isset( $args['args'] ) ) { 50 $common_args = $args['args']; 51 unset( $args['args'] ); 52 } else { 53 $common_args = array(); 54 } 55 49 56 if ( isset( $args['callback'] ) ) { 50 57 // Upgrade a single set to multiple. … … 58 65 ); 59 66 foreach ( $args as $key => &$arg_group ) { 60 if ( ! is_numeric( $ arg_group) ) {67 if ( ! is_numeric( $key ) ) { 61 68 // Route option, skip here. 62 69 continue; … … 64 71 65 72 $arg_group = array_merge( $defaults, $arg_group ); 73 $arg_group['args'] = array_merge( $common_args, $arg_group['args'] ); 66 74 } 67 75
Note: See TracChangeset
for help on using the changeset viewer.