wp/wp-includes/class-wp-oembed.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
    87 			'#https?://cloudup\.com/.*#i'                  => array( 'https://cloudup.com/oembed', true ),
    87 			'#https?://cloudup\.com/.*#i'                  => array( 'https://cloudup.com/oembed', true ),
    88 			'#https?://(www\.)?reverbnation\.com/.*#i'     => array( 'https://www.reverbnation.com/oembed', true ),
    88 			'#https?://(www\.)?reverbnation\.com/.*#i'     => array( 'https://www.reverbnation.com/oembed', true ),
    89 			'#https?://videopress\.com/v/.*#'              => array( 'https://public-api.wordpress.com/oembed/?for=' . $host, true ),
    89 			'#https?://videopress\.com/v/.*#'              => array( 'https://public-api.wordpress.com/oembed/?for=' . $host, true ),
    90 			'#https?://(www\.)?reddit\.com/r/[^/]+/comments/.*#i' => array( 'https://www.reddit.com/oembed', true ),
    90 			'#https?://(www\.)?reddit\.com/r/[^/]+/comments/.*#i' => array( 'https://www.reddit.com/oembed', true ),
    91 			'#https?://(www\.)?speakerdeck\.com/.*#i'      => array( 'https://speakerdeck.com/oembed.{format}', true ),
    91 			'#https?://(www\.)?speakerdeck\.com/.*#i'      => array( 'https://speakerdeck.com/oembed.{format}', true ),
    92 			'#https?://(www\.)?screencast\.com/.*#i'       => array( 'https://api.screencast.com/external/oembed', true ),
       
    93 			'#https?://([a-z0-9-]+\.)?amazon\.(com|com\.mx|com\.br|ca)/.*#i' => array( 'https://read.amazon.com/kp/api/oembed', true ),
    92 			'#https?://([a-z0-9-]+\.)?amazon\.(com|com\.mx|com\.br|ca)/.*#i' => array( 'https://read.amazon.com/kp/api/oembed', true ),
    94 			'#https?://([a-z0-9-]+\.)?amazon\.(co\.uk|de|fr|it|es|in|nl|ru)/.*#i' => array( 'https://read.amazon.co.uk/kp/api/oembed', true ),
    93 			'#https?://([a-z0-9-]+\.)?amazon\.(co\.uk|de|fr|it|es|in|nl|ru)/.*#i' => array( 'https://read.amazon.co.uk/kp/api/oembed', true ),
    95 			'#https?://([a-z0-9-]+\.)?amazon\.(co\.jp|com\.au)/.*#i' => array( 'https://read.amazon.com.au/kp/api/oembed', true ),
    94 			'#https?://([a-z0-9-]+\.)?amazon\.(co\.jp|com\.au)/.*#i' => array( 'https://read.amazon.com.au/kp/api/oembed', true ),
    96 			'#https?://([a-z0-9-]+\.)?amazon\.cn/.*#i'     => array( 'https://read.amazon.cn/kp/api/oembed', true ),
    95 			'#https?://([a-z0-9-]+\.)?amazon\.cn/.*#i'     => array( 'https://read.amazon.cn/kp/api/oembed', true ),
    97 			'#https?://(www\.)?a\.co/.*#i'                 => array( 'https://read.amazon.com/kp/api/oembed', true ),
    96 			'#https?://(www\.)?a\.co/.*#i'                 => array( 'https://read.amazon.com/kp/api/oembed', true ),
   108 			'#https?://([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?/.*#i' => array( 'https://www.pinterest.com/oembed.json', true ),
   107 			'#https?://([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?/.*#i' => array( 'https://www.pinterest.com/oembed.json', true ),
   109 			'#https?://(www\.)?wolframcloud\.com/obj/.+#i' => array( 'https://www.wolframcloud.com/oembed', true ),
   108 			'#https?://(www\.)?wolframcloud\.com/obj/.+#i' => array( 'https://www.wolframcloud.com/oembed', true ),
   110 			'#https?://pca\.st/.+#i'                       => array( 'https://pca.st/oembed.json', true ),
   109 			'#https?://pca\.st/.+#i'                       => array( 'https://pca.st/oembed.json', true ),
   111 			'#https?://((play|www)\.)?anghami\.com/.*#i'   => array( 'https://api.anghami.com/rest/v1/oembed.view', true ),
   110 			'#https?://((play|www)\.)?anghami\.com/.*#i'   => array( 'https://api.anghami.com/rest/v1/oembed.view', true ),
   112 			'#https?://bsky.app/profile/.*/post/.*#i'      => array( 'https://embed.bsky.app/oembed', true ),
   111 			'#https?://bsky.app/profile/.*/post/.*#i'      => array( 'https://embed.bsky.app/oembed', true ),
       
   112 			'#https?://(www\.)?canva\.com/design/.*/view.*#i' => array( 'https://canva.com/_oembed', true ),
   113 		);
   113 		);
   114 
   114 
   115 		if ( ! empty( self::$early_providers['add'] ) ) {
   115 		if ( ! empty( self::$early_providers['add'] ) ) {
   116 			foreach ( self::$early_providers['add'] as $format => $data ) {
   116 			foreach ( self::$early_providers['add'] as $format => $data ) {
   117 				$providers[ $format ] = $data;
   117 				$providers[ $format ] = $data;
   188 		 * | WolframCloud | wolframcloud.com                          | 5.9.0   |
   188 		 * | WolframCloud | wolframcloud.com                          | 5.9.0   |
   189 		 * | Pocket Casts | pocketcasts.com                           | 6.1.0   |
   189 		 * | Pocket Casts | pocketcasts.com                           | 6.1.0   |
   190 		 * | Crowdsignal  | crowdsignal.net                           | 6.2.0   |
   190 		 * | Crowdsignal  | crowdsignal.net                           | 6.2.0   |
   191 		 * | Anghami      | anghami.com                               | 6.3.0   |
   191 		 * | Anghami      | anghami.com                               | 6.3.0   |
   192 		 * | Bluesky      | bsky.app                                  | 6.6.0   |
   192 		 * | Bluesky      | bsky.app                                  | 6.6.0   |
       
   193 		 * | Canva        | canva.com                                 | 6.8.0   |
   193 		 *
   194 		 *
   194 		 * No longer supported providers:
   195 		 * No longer supported providers:
   195 		 *
   196 		 *
   196 		 * |   Provider   |        Flavor        |   Since   |  Removed  |
   197 		 * |   Provider   |        Flavor        |   Since   |  Removed  |
   197 		 * | ------------ | -------------------- | --------- | --------- |
   198 		 * | ------------ | -------------------- | --------- | --------- |
   212 		 * | Instagram TV | instagr.am           | 5.1.0     | 5.5.2     |
   213 		 * | Instagram TV | instagr.am           | 5.1.0     | 5.5.2     |
   213 		 * | Facebook     | facebook.com         | 4.7.0     | 5.5.2     |
   214 		 * | Facebook     | facebook.com         | 4.7.0     | 5.5.2     |
   214 		 * | Meetup.com   | meetup.com           | 3.9.0     | 6.0.1     |
   215 		 * | Meetup.com   | meetup.com           | 3.9.0     | 6.0.1     |
   215 		 * | Meetup.com   | meetu.ps             | 3.9.0     | 6.0.1     |
   216 		 * | Meetup.com   | meetu.ps             | 3.9.0     | 6.0.1     |
   216 		 * | SlideShare   | slideshare.net       | 3.5.0     | 6.6.0     |
   217 		 * | SlideShare   | slideshare.net       | 3.5.0     | 6.6.0     |
       
   218 		 * | Screencast   | screencast.com       | 4.8.0     | 6.8.2     |
   217 		 *
   219 		 *
   218 		 * @see wp_oembed_add_provider()
   220 		 * @see wp_oembed_add_provider()
   219 		 *
   221 		 *
   220 		 * @since 2.9.0
   222 		 * @since 2.9.0
   221 		 *
   223 		 *