Wordpress/tests/phpunit/tests/oembed
Gary Pendergast 029ce05801 REST API: Always add index.php to the REST URL when pretty permalinks are disabled.
When pretty permalinks are disabled, the web server will internally forward requests to `index.php`. Unfortunately, nginx only forwards HTTP/1.0 methods: `PUT`, `PATCH`, and `DELETE` methods will return a 405 error.

To work around this nginx behaviour, including `index.php` in the REST URL skips the internal redirect.

Fixes #40886.



git-svn-id: https://develop.svn.wordpress.org/trunk@41139 602fd350-edb4-49c9-b593-d223f7449a82
2017-07-25 00:49:22 +00:00
..
controller.php REST API: Always add index.php to the REST URL when pretty permalinks are disabled. 2017-07-25 00:49:22 +00:00
discovery.php Embeds: Allow embedding static front pages and pages having a child page with an embed slug. 2016-01-15 07:55:19 +00:00
filterResult.php Embeds: Use a more accessible way to initially hide the iframe. 2016-02-25 10:22:43 +00:00
getResponseData.php Embeds: In get_post_embed_html(), move the optional $post argument after the required $width and $height. 2015-10-31 15:50:23 +00:00
headers.php Embeds: Who put this REST API infrastructure in my WordPress? 2015-10-29 22:50:13 +00:00
postEmbedUrl.php Embeds: Allow embedding static front pages and pages having a child page with an embed slug. 2016-01-15 07:55:19 +00:00
template.php Build/Test Tools: Don't trigger a skipped test when the built version of wp-embed.min.js isn't present. 2017-04-22 20:17:49 +00:00
WpEmbed.php Build/Test Tools: Begin eliminating unnecessary randomness in tests. 2016-10-09 01:11:14 +00:00
wpOembed.php Build/Test Tools: Add assertNotFalse() method to WP_UnitTestCase and use it where appropriate. 2017-01-17 03:39:36 +00:00