Skip to content

Commit

Permalink
* Adds brackets, proper spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
shadyvb committed Aug 24, 2013
1 parent f0eb3bc commit cf11bd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dependency-minification.php
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,9 @@ static function group_handles_by_extra( array $handles, WP_Dependencies $wp_deps
unset($extra['rtl']);
unset($extra['data']);
// Default scripts are not assigned 'group', so we use the original 'deps->args' value
if ( is_a( $wp_deps, 'WP_Scripts' ) && empty($extra['group']) && is_int($dep->args) )
if ( is_a( $wp_deps, 'WP_Scripts' ) && empty( $extra['group'] ) && is_int( $dep->args ) ) {
$extra['group'] = $dep->args;
}
ksort($extra);
$key = serialize($extra);
$bundles[$key][] = $handle;
Expand Down

0 comments on commit cf11bd0

Please sign in to comment.