Embeds: In get_post_embed_html(), move the optional $post argument after the required $width and $height.

Props swissspidy.
Fixes #34523.

git-svn-id: https://develop.svn.wordpress.org/trunk@35472 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2015-10-31 15:50:23 +00:00
parent 29f940c5b2
commit fbd0b570fc
4 changed files with 9 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ class Tests_oEmbed_Response_Data extends WP_UnitTestCase {
'type' => 'rich',
'width' => 400,
'height' => 225,
'html' => get_post_embed_html( $post, 400, 225 ),
'html' => get_post_embed_html( 400, 225, $post ),
), $data );
}
@@ -54,7 +54,7 @@ class Tests_oEmbed_Response_Data extends WP_UnitTestCase {
'type' => 'rich',
'width' => 400,
'height' => 225,
'html' => get_post_embed_html( $post, 400, 225 ),
'html' => get_post_embed_html( 400, 225, $post ),
), $data );
}