From 2ed21d52fef7d3263d9280e4b40b38f402dd8eb7 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Fri, 16 Feb 2018 16:33:38 -0500 Subject: [PATCH] Fixed vimeo links Vimeo links that do not start with www. are now correctly interpreted on the video sections on Member Detail pages. --- index.php | 6 +++--- models/front/members/detail.php | 2 +- readme.txt | 7 ++++++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 233e92e4..5ee70cb4 100644 --- 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 * @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 diff --git a/models/front/members/detail.php b/models/front/members/detail.php index ebd92970..7b3f46c1 100644 --- a/models/front/members/detail.php +++ b/models/front/members/detail.php @@ -336,7 +336,7 @@ class GlmMembersFront_members_detail extends GlmDataMemberInfo if (strpos($video_url, 'player') !== false) { $memberData['video_embed'] = ''; } else { - $memberData['video_embed'] = preg_replace("/\s*[a-zA-Z\/\/:\.]*www.vimeo.com\/([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i","",$video_url); + $memberData['video_embed'] = preg_replace("/\s*[a-zA-Z\/\/:\.]*vimeo.com\/([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i","",$video_url); } } else { $memberData['video_embed'] = "Could not find video"; diff --git a/readme.txt b/readme.txt index 3cc757bb..338d1e5b 100644 --- a/readme.txt +++ b/readme.txt @@ -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 -- 2.17.1