Fixed vimeo links
authorLaury GvR <laury@gaslightmedia.com>
Fri, 16 Feb 2018 21:33:38 +0000 (16:33 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 16 Feb 2018 21:33:38 +0000 (16:33 -0500)
Vimeo links that do not start with www. are now correctly
interpreted on the video sections on Member Detail pages.

index.php
models/front/members/detail.php
readme.txt

index 233e92e..5ee70cb 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Database
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
- * Version: 2.10.21
+ * Version: 2.10.22
  * Author: Gaslight Media
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -19,7 +19,7 @@
  * @package glmMembersDatabase
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 2.10.21
+ * @version 2.10.22
  */
 
 // Check that we're being called by WordPress.
@@ -44,7 +44,7 @@ if (!defined('ABSPATH')) {
  *
  */
 
-define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.21');
+define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.22');
 define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.32');
 
 // Check if plugin version is not current in WordPress option and if needed updated it
index ebd9297..7b3f46c 100644 (file)
@@ -336,7 +336,7 @@ class GlmMembersFront_members_detail extends GlmDataMemberInfo
                 if (strpos($video_url, 'player') !== false) {
                     $memberData['video_embed'] = '<iframe width="100%" height="315" src="'.$video_url.'" frameborder="0" allowfullscreen></iframe>';
                 } else {
-                    $memberData['video_embed'] = preg_replace("/\s*[a-zA-Z\/\/:\.]*www.vimeo.com\/([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i","<iframe width=\"100%\" height=\"315\" src=\"//player.vimeo.com/video/$1\" frameborder=\"0\" allowfullscreen></iframe>",$video_url);
+                    $memberData['video_embed'] = preg_replace("/\s*[a-zA-Z\/\/:\.]*vimeo.com\/([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i","<iframe width=\"100%\" height=\"315\" src=\"//player.vimeo.com/video/$1\" frameborder=\"0\" allowfullscreen></iframe>",$video_url);
                 }
             } else {
                 $memberData['video_embed'] = "Could not find video";
index 3cc757b..338d1e5 100644 (file)
@@ -66,8 +66,13 @@ There is of course much more to this.
 (none)
 
 == Changelog ==
+= 2.10.22 =
+* Vimeo links that do not start with www. are now correctly interpreted on the 
+  video sections on Member Detail pages
+
 = 2.10.21 =
-* adding url GET params in the member list view to scroll to the search results when clicking on alpha search or filter search
+* adding url GET params in the member list view to scroll to the search results 
+  when clicking on alpha search or filter search
 
 = 2.10.17 - 2.10.19 =
 * Improve member search in admin. Can now use Back To Search button to return