Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion documentcloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -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( $default_atts, $args );
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thanks @whyisjake. Seems like the param order needs to be reversed though?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, lemme update.


// Some resources (like notes) have multiple possible
// user-facing URLs. We recompose them into a single form.
Expand Down