WordPress.org

Make WordPress Core

Ticket #21117: 21117.diff

File 21117.diff, 503 bytes (added by jeremyfelt, 6 years ago)

Replaces wp_parse_args() with a direct assignment to avoid PHP notice

  • wp-includes/class-wp-admin-bar.php

     
    105105
    106106                // Do the same for 'meta' items.
    107107                if ( ! empty( $defaults['meta'] ) && empty( $args['meta'] ) )
    108                         $args['meta'] = wp_parse_args( $args['meta'], $defaults['meta'] );
     108                        $args['meta'] = $defaults['meta'];
    109109
    110110                $args = wp_parse_args( $args, $defaults );
    111111