diff --git a/documentcloud.php b/documentcloud.php index acee6f7..08a18f8 100644 --- a/documentcloud.php +++ b/documentcloud.php @@ -181,7 +181,7 @@ function prepare_oembed_fetch( $provider, $url, $args ) { // Merge actual args with default attributes so that defaults are always // sent to oEmbed endpoint $default_atts = $this->get_default_atts(); - $atts = array_merge( $default_atts, $args ); + $atts = wp_parse_args( $args, $default_atts ); // Some resources (like notes) have multiple possible // user-facing URLs. We recompose them into a single form.