Commit Graph

131 Commits

Author SHA1 Message Date
John Blackbourn
35f613833e Update the explanatory text which accompanies the list of whitelisted oEmbed providers, following the change to the default value of the discover argument in WP_oEmbed::get_provider().
See #32522

Built from https://develop.svn.wordpress.org/trunk@34907


git-svn-id: http://core.svn.wordpress.org/trunk@34872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-07 13:05:25 +00:00
John Blackbourn
9d7d1508e2 Add VideoPress as a trusted oEmbed provider.
Fixes #34031
Props kraftbj

Built from https://develop.svn.wordpress.org/trunk@34785


git-svn-id: http://core.svn.wordpress.org/trunk@34750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-02 23:20:28 +00:00
Drew Jaynes
6e47f2a1ee Docs: Slightly improve the readability of the data table in the DocBlock description for the oembed_providers hook by centering the HTTPS column.
See #32246.

Built from https://develop.svn.wordpress.org/trunk@34644


git-svn-id: http://core.svn.wordpress.org/trunk@34608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-27 22:11:48 +00:00
John Blackbourn
2079755bd8 Remove the unnecessary horizontal rules in the oEmbed providers table to tidy up the Code Reference.
See #32246

Built from https://develop.svn.wordpress.org/trunk@34597


git-svn-id: http://core.svn.wordpress.org/trunk@34561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-26 15:17:24 +00:00
Drew Jaynes
8d96a53ba4 Docs: Adjust the table of providers in the hook doc for oembed_providers to use "No" instead of "!" to signify lack of SSL support.
When displayed in the Code Reference, the "!" doesn't convey enough information.

See #32246. See #28507.

Built from https://develop.svn.wordpress.org/trunk@34589


git-svn-id: http://core.svn.wordpress.org/trunk@34553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-26 12:50:30 +00:00
John Blackbourn
15a9fd4332 Switch to the https oEmbed endpoint for Animoto because it redirects there anyway.
See #28507

Built from https://develop.svn.wordpress.org/trunk@34588


git-svn-id: http://core.svn.wordpress.org/trunk@34552 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-26 12:24:24 +00:00
John Blackbourn
485a12c2fe Switch to the https oEmbed endpoint for Dailymotion so secure embeds are supported.
See #28507

Built from https://develop.svn.wordpress.org/trunk@34587


git-svn-id: http://core.svn.wordpress.org/trunk@34551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-26 11:51:24 +00:00
John Blackbourn
b27d9015e1 Update the oEmbed endpoint URL for Photobucket.
Fixes #33783

Built from https://develop.svn.wordpress.org/trunk@34526


git-svn-id: http://core.svn.wordpress.org/trunk@34490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-24 22:03:25 +00:00
John Blackbourn
13109ed129 Add an entry for Cloudup to the list of oEmbed providers.
See #26278

Built from https://develop.svn.wordpress.org/trunk@34459


git-svn-id: http://core.svn.wordpress.org/trunk@34423 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-23 16:00:25 +00:00
Scott Taylor
84da11d918 Pass false as the 2nd argument to class_exists() to disable autoloading and to not cause problems for those who define __autoload().
Fixes #20523.

Built from https://develop.svn.wordpress.org/trunk@34348


git-svn-id: http://core.svn.wordpress.org/trunk@34312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-20 03:52:25 +00:00
John Blackbourn
6a0818996d Space out.
Built from https://develop.svn.wordpress.org/trunk@33831


git-svn-id: http://core.svn.wordpress.org/trunk@33799 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-31 21:25:21 +00:00
Sergey Biryukov
a6ea3624ef Add oEmbed support for ReverbNation.
props rhubbardreverb.
fixes #33207.
Built from https://develop.svn.wordpress.org/trunk@33745


git-svn-id: http://core.svn.wordpress.org/trunk@33713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-26 00:29:21 +00:00
Scott Taylor
ef87172270 foreach is a statement, not a function.
See #33491.

Built from https://develop.svn.wordpress.org/trunk@33734


git-svn-id: http://core.svn.wordpress.org/trunk@33702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-25 20:28:22 +00:00
Drew Jaynes
d2517984e0 Docs: Improve pared formatting of the oEmbed providers tables by removing the unrecognized first and last rows in the hook docs for the oembed_providers filter.
See #32246.

Built from https://develop.svn.wordpress.org/trunk@33720


git-svn-id: http://core.svn.wordpress.org/trunk@33687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-24 04:38:25 +00:00
Gary Pendergast
f2a248e16d oEmbed: Remove blip.tv as an oEmbed provider, the service has been shut down.
Vale, blip.tv.

Fixes #33522.

Props rabmalin.


Built from https://develop.svn.wordpress.org/trunk@33719


git-svn-id: http://core.svn.wordpress.org/trunk@33686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-24 04:12:25 +00:00
Mark Jaquith
dbcff0beae Add CloudUp to our oEmbed provider whitelist.
fixes #26278
Built from https://develop.svn.wordpress.org/trunk@33472


git-svn-id: http://core.svn.wordpress.org/trunk@33439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-29 02:57:26 +00:00
Scott Taylor
d8b13fa32b YouTube oEmbed parsing: support the m subdomain.
Adds unit tests.

Props Toru, johnbillion.
Fixes #32714.

Built from https://develop.svn.wordpress.org/trunk@32930


git-svn-id: http://core.svn.wordpress.org/trunk@32901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-06-24 21:06:26 +00:00
Scott Taylor
19a3aacc94 Add @static* annotations where they are missing.
Initialize all static vars that are not, most to `null`.

See #32444.

Built from https://develop.svn.wordpress.org/trunk@32650


git-svn-id: http://core.svn.wordpress.org/trunk@32620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-29 15:43:29 +00:00
Scott Taylor
3c24a2b32b In class-oembed.php, clarify/add some return docs.
See #32444.

Built from https://develop.svn.wordpress.org/trunk@32533


git-svn-id: http://core.svn.wordpress.org/trunk@32503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-21 21:31:27 +00:00
Dominik Schilling
64fc7294b6 Use HTTPS URLs for codex.wordpress.org.
see #27115.
Built from https://develop.svn.wordpress.org/trunk@32116


git-svn-id: http://core.svn.wordpress.org/trunk@32095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-12 21:29:32 +00:00
John Blackbourn
97fa0cf1b3 RIP3 Revision3
Fixes #31592

Built from https://develop.svn.wordpress.org/trunk@31712


git-svn-id: http://core.svn.wordpress.org/trunk@31693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 02:07:25 +00:00
John Blackbourn
d7c60f135a Some updates to the oEmbed provider table.
See #28507

Built from https://develop.svn.wordpress.org/trunk@31711


git-svn-id: http://core.svn.wordpress.org/trunk@31692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 02:03:27 +00:00
John Blackbourn
4f1e0eee52 Allow https URLs for Instagram embeds, and switch to https for its oEmbed API endpoint.
See #28507.

Built from https://develop.svn.wordpress.org/trunk@31710


git-svn-id: http://core.svn.wordpress.org/trunk@31691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-11 01:06:26 +00:00
Scott Taylor
a91d1c2ab2 Add oEmbed support for Kickstarter.
See #29126.

Built from https://develop.svn.wordpress.org/trunk@31671


git-svn-id: http://core.svn.wordpress.org/trunk@31652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-07 22:11:26 +00:00
Scott Taylor
c06316b7ab Whitespace after [31630].
Built from https://develop.svn.wordpress.org/trunk@31631


git-svn-id: http://core.svn.wordpress.org/trunk@31612 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 20:14:24 +00:00
Scott Taylor
b05ff18586 Add oEmbed support for Tumblr.
Props elliottcarlson.
See #31180.

Built from https://develop.svn.wordpress.org/trunk@31630


git-svn-id: http://core.svn.wordpress.org/trunk@31611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-05 20:13:25 +00:00
Scott Taylor
641f95155b Use RegEx instead of DOMDocument when protecting <pre> tags in WP_oEmbed::_strip_newlines(). It is incredibly difficult to maintain character encoding and whitespace when parsing via DOMDocument.
See #31214.

Built from https://develop.svn.wordpress.org/trunk@31423


git-svn-id: http://core.svn.wordpress.org/trunk@31404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-11 22:18:53 +00:00
Scott Taylor
a7e581d991 After [31415], make sure str_replace() only occurs once for each matched tag to avoid overwriting until <pre>s.
See #31214.

Built from https://develop.svn.wordpress.org/trunk@31416


git-svn-id: http://core.svn.wordpress.org/trunk@31397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-11 19:15:26 +00:00
Scott Taylor
cb3ef90d24 Protect <pre> tags when parsing oEmbed responses in WP_oEmbed::_strip_newlines() in DOMDocument is available.
Fixes #31214.

Built from https://develop.svn.wordpress.org/trunk@31415


git-svn-id: http://core.svn.wordpress.org/trunk@31396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-11 19:11:27 +00:00
Scott Taylor
cd4fc46cf2 oEmbed discovery fails on encoded link URLs: decode HTML chars in the HTML-encoded URLs that are returned.
Props cweiske.
Fixes #31213.

Built from https://develop.svn.wordpress.org/trunk@31413


git-svn-id: http://core.svn.wordpress.org/trunk@31394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-11 16:13:26 +00:00
Scott Taylor
3cd585a457 oEmbed discovery fails on XHTML head links, adjust the regex to not match /.
Props cweiske.
Fixes #31212.

Built from https://develop.svn.wordpress.org/trunk@31407


git-svn-id: http://core.svn.wordpress.org/trunk@31388 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-10 23:37:28 +00:00
Scott Taylor
ed4e7b01d4 In WP_oEmbed, only allow __call() to run against a whitelist of methods, $compat_methods.
See #30891.

Built from https://develop.svn.wordpress.org/trunk@31148


git-svn-id: http://core.svn.wordpress.org/trunk@31129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-01-11 22:27:23 +00:00
Scott Taylor
905f35f289 In Customizer classes:
* `public final function` methods should be `final public function` - confusing Hack and aligns with PSR2
* Some methods were missing access modifiers

See #30799.

Built from https://develop.svn.wordpress.org/trunk@31083


git-svn-id: http://core.svn.wordpress.org/trunk@31064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-01-08 06:02:24 +00:00
Scott Taylor
e619abda6e Improve various @param docs for src/wp-includes/*.
See #30224.

Built from https://develop.svn.wordpress.org/trunk@30681


git-svn-id: http://core.svn.wordpress.org/trunk@30671 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-12-01 01:34:24 +00:00
Drew Jaynes
8f6188ae53 Ensure inline code is markdown-escaped as such, and that code snippets in descriptions are properly indented.
Affects DocBlocks for the following core elements:
* Two arguments in `_walk_bookmarks()`
* A code snippet in the class header for `WP_Roles`
* A code snippet in the class header for `WP_HTTP_Proxy`
* Inline code fixes in the summary and a parameter description for `WP_oEmbed::discover()`
* An argument description in `_WP_Editors::parse_settings()`
* Inline code fixes in the summary and a parameter description the `embed_oembed_discover` hook.

Props rarst.
See #30473.

Built from https://develop.svn.wordpress.org/trunk@30536


git-svn-id: http://core.svn.wordpress.org/trunk@30525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-24 04:42:22 +00:00
Helen Hou-Sandí
541e6d31af oEmbed: Add support for the Vine endpoint.
props niallkennedy.
fixes #30426.

Built from https://develop.svn.wordpress.org/trunk@30503


git-svn-id: http://core.svn.wordpress.org/trunk@30492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-21 16:04:23 +00:00
Drew Jaynes
f8657d5890 Remove redundant and erroneous @uses tag from most core inline documentation.
Per our inline documentation standards, no further use of the `@uses` tag is recommended as used and used-by relationships can be derived through other means. This removes most uses of the tag in core documentation, with remaining tags to be converted to `@global` or `@see` as they apply.

Fixes #30191.

Built from https://develop.svn.wordpress.org/trunk@30105


git-svn-id: http://core.svn.wordpress.org/trunk@30105 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-30 01:05:24 +00:00
Scott Taylor
b67ba6fb1c WP_oEmbed::_strip_newlines is called as a filter callback for oembed_dataparse, must be public. It was marked as private for fun in [14109] and then made private officially in [28507].
Fixes #29647 for trunk.


Built from https://develop.svn.wordpress.org/trunk@29742


git-svn-id: http://core.svn.wordpress.org/trunk@29516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-12 22:54:16 +00:00
Scott Taylor
a1245a4a67 Allow arbitrary subdomains for the oEmbed endpoint for Slideshare.
Props Latz.
Fixes #29427.

Built from https://develop.svn.wordpress.org/trunk@29735


git-svn-id: http://core.svn.wordpress.org/trunk@29509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-11 19:25:16 +00:00
John Blackbourn
a18c1f29a2 Switch the Polldaddy oEmbed endpoint to HTTPS as it now redirects there. See #28507.
Built from https://develop.svn.wordpress.org/trunk@29476


git-svn-id: http://core.svn.wordpress.org/trunk@29254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-13 00:17:16 +00:00
Drew Jaynes
3665b5a1a1 Add periods to short descriptions for magic methods added in [28501], [28521], and [28524].
See #22234 and #28885.

Built from https://develop.svn.wordpress.org/trunk@29165


git-svn-id: http://core.svn.wordpress.org/trunk@28949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-14 01:12:14 +00:00
Drew Jaynes
f5e5bc8934 Inline documentation cleanup for 4.0 audit.
* Fill out inline documentation for the `__call()` magic method added in [28507]
* Inline documentation tweaks for `get_provider()`, added in [28728]
* Inline documentation tweaks for `_add_provider_early()`, added in [28846]
* `@access` tag added for `_remove_provider_early()`, added in [28846]

See #22234 and #28885.

Built from https://develop.svn.wordpress.org/trunk@29155


git-svn-id: http://core.svn.wordpress.org/trunk@28939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-14 00:23:15 +00:00
John Blackbourn
5c949195bc Update the oEmbed provider inline docs
Built from https://develop.svn.wordpress.org/trunk@29114


git-svn-id: http://core.svn.wordpress.org/trunk@28900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-11 23:38:14 +00:00
John Blackbourn
0303ea0272 Add support for secure wordpress.tv embeds (thanks stephdau). See #28507.
Built from https://develop.svn.wordpress.org/trunk@29110


git-svn-id: http://core.svn.wordpress.org/trunk@28896 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-11 23:01:15 +00:00
Drew Jaynes
b8750d5bb6 Add phpDoc blocks for two WP_oEmbed methods added in [28846].
Fixes #28284.

Built from https://develop.svn.wordpress.org/trunk@29012


git-svn-id: http://core.svn.wordpress.org/trunk@28800 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-07 06:34:14 +00:00
Drew Jaynes
41b7269f16 Remove duplicate of the 'oembed_providers' filter accidentally introduced in [28949].
Move annoted table of oEmbed providers into the existing filter docs.

See #28507.
Fixes #28372. 

Built from https://develop.svn.wordpress.org/trunk@28950


git-svn-id: http://core.svn.wordpress.org/trunk@28747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-02 00:34:15 +00:00
Drew Jaynes
e618b986bf Introduce an annotated list of oEmbed providers, their flavors, whether they support SSL, and when they were added to the oembed_providers filter docs.
See #28507.
Fixes #28372.

Built from https://develop.svn.wordpress.org/trunk@28949


git-svn-id: http://core.svn.wordpress.org/trunk@28746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-02 00:19:15 +00:00
Sergey Biryukov
f799048057 Pass $url parameter to wp_embed_defaults() and 'embed_defaults' filter.
props wpsmith, sabreuse, jacobdubail.
fixes #20151.
Built from https://develop.svn.wordpress.org/trunk@28923


git-svn-id: http://core.svn.wordpress.org/trunk@28722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 11:16:15 +00:00
Scott Taylor
2efb8f8507 When wp_oembed_add_provider() or wp_oembed_remove_provider() is called before the plugins_loaded hook has, store the values statically on the WP_oEmbed object and add them just-in-time when the object is instantiated.
This ensures that all plugins have an accurate provider list when `apply_filters( 'oembed_providers', $providers )` is called. 

Props kovshenin.
Fixes #28284.

Built from https://develop.svn.wordpress.org/trunk@28846


git-svn-id: http://core.svn.wordpress.org/trunk@28650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 02:30:15 +00:00
John Blackbourn
c9ba310e25 Switch to SSL for the Flickr and Slideshare oEmbed endpoints. Add support for SSL embeds on flic.kr. See #28507.
Built from https://develop.svn.wordpress.org/trunk@28834


git-svn-id: http://core.svn.wordpress.org/trunk@28638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-25 23:36:14 +00:00