Advertisement
jan_dembowski

fix-vimeo-https.php

Jun 8th, 2012
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <?php
  2. /*
  3.  Plugin Name: Hotfix vimeo oembed
  4.  Plugin URI:
  5.  Description: (Modified) Fix incorrect vimeo https oembed provider url.
  6.  Author: gluten
  7.  Version: 1.1
  8.  Author URI: http://belabor.org/
  9.  */
  10.  
  11. add_filter('oembed_providers', 'fix_vimeo_oembed_providers');
  12.  
  13. function fix_vimeo_oembed_providers( $providers ) {
  14.     $providers['#https://(www\.)?vimeo\.com/.*#i'] = array( 'http://vimeo.com/api/oembed.{format}', true  );
  15.     return $providers;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement