Changeset 3325206
- Timestamp:
- 07/09/2025 06:41:39 PM (9 months ago)
- Location:
- open-video
- Files:
-
- 5 edited
- 5 copied
-
tags/1.0.3 (copied) (copied from open-video/trunk)
-
tags/1.0.3/OpenVideoNamespace/Channels.php (copied) (copied from open-video/trunk/OpenVideoNamespace/Channels.php) (1 diff)
-
tags/1.0.3/OpenVideoNamespace/RequestUtils.php (copied) (copied from open-video/trunk/OpenVideoNamespace/RequestUtils.php)
-
tags/1.0.3/OpenVideoNamespace/Settings.php (modified) (1 diff)
-
tags/1.0.3/README.txt (copied) (copied from open-video/trunk/README.txt) (2 diffs)
-
tags/1.0.3/open-video.php (copied) (copied from open-video/trunk/open-video.php) (3 diffs)
-
trunk/OpenVideoNamespace/Channels.php (modified) (1 diff)
-
trunk/OpenVideoNamespace/Settings.php (modified) (1 diff)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/open-video.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
open-video/tags/1.0.3/OpenVideoNamespace/Channels.php
r3323935 r3325206 255 255 $new_channel_path = trim($data['data'], '/'); 256 256 $current_channel_path = self::openvideoplugin_get_channel_path(); 257 if ($new_channel_path === '') { 258 // If the data is an empty string, set domain_verification_status to false and unset the channel path option 259 update_option('openvideoplugin_domain_verification_status', array('verified' => false)); 260 delete_option(self::OPENVIDEOPLUGIN_CHANNEL_PATH_OPTION); 261 return new \WP_Error('channel_path_empty', 'Channel path is empty. Domain is not verified.'); 262 } 257 263 if ($new_channel_path && $new_channel_path !== $current_channel_path) { 258 264 self::openvideoplugin_set_channel_path($new_channel_path); -
open-video/tags/1.0.3/OpenVideoNamespace/Settings.php
r3321428 r3325206 243 243 $result = \OpenVideoNamespace\OpenVideoPlugin_Channels::openvideoplugin_refresh_channel_path(); 244 244 if (is_wp_error($result)) { 245 $error_code = $result->get_error_code(); 246 if ($error_code === 'channel_path_empty') { 247 // If the channel path is empty, reload the page to show the domain verification tab 248 echo '<script>window.location.href = window.location.pathname + "?page=' . esc_js(self::MENU_SLUG) . '&tab=domain_verification";</script>'; 249 return; 250 } 245 251 \error_log('Open Video Plugin Error: ' . $result->get_error_message()); 246 252 echo '<div class="notice notice-error is-dismissible"><p>Channel path refresh failed. Please try again later.</p></div>'; -
open-video/tags/1.0.3/README.txt
r3323935 r3325206 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.0 8 Stable tag: 1.0. 28 Stable tag: 1.0.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 27 27 28 28 == Changelog == 29 = 1.0.3 = 30 * Bug fixes 31 29 32 = 1.0.2 = 30 33 * Bug fixes -
open-video/tags/1.0.3/open-video.php
r3323935 r3325206 16 16 * 17 17 * @link https://www.open.video/ 18 * @since 1.0. 218 * @since 1.0.3 19 19 * @package Open.Video 20 20 * … … 23 23 * Plugin URI: https://wordpress.org/plugins/open-video 24 24 * Description: Open.Video allows you to easily embed videos to your site from the Open.Video Network. 25 * Version: 1.0. 225 * Version: 1.0.3 26 26 * Requires at least: 6.1 27 27 * Requires PHP: 7.0 … … 41 41 * Rename this for your plugin and update it as you release new versions. 42 42 */ 43 define('OPENVIDEOPLUGIN_VERSION', '1.0. 2');43 define('OPENVIDEOPLUGIN_VERSION', '1.0.3'); 44 44 45 45 global $openvideoplugin_regex; -
open-video/trunk/OpenVideoNamespace/Channels.php
r3323935 r3325206 255 255 $new_channel_path = trim($data['data'], '/'); 256 256 $current_channel_path = self::openvideoplugin_get_channel_path(); 257 if ($new_channel_path === '') { 258 // If the data is an empty string, set domain_verification_status to false and unset the channel path option 259 update_option('openvideoplugin_domain_verification_status', array('verified' => false)); 260 delete_option(self::OPENVIDEOPLUGIN_CHANNEL_PATH_OPTION); 261 return new \WP_Error('channel_path_empty', 'Channel path is empty. Domain is not verified.'); 262 } 257 263 if ($new_channel_path && $new_channel_path !== $current_channel_path) { 258 264 self::openvideoplugin_set_channel_path($new_channel_path); -
open-video/trunk/OpenVideoNamespace/Settings.php
r3321428 r3325206 243 243 $result = \OpenVideoNamespace\OpenVideoPlugin_Channels::openvideoplugin_refresh_channel_path(); 244 244 if (is_wp_error($result)) { 245 $error_code = $result->get_error_code(); 246 if ($error_code === 'channel_path_empty') { 247 // If the channel path is empty, reload the page to show the domain verification tab 248 echo '<script>window.location.href = window.location.pathname + "?page=' . esc_js(self::MENU_SLUG) . '&tab=domain_verification";</script>'; 249 return; 250 } 245 251 \error_log('Open Video Plugin Error: ' . $result->get_error_message()); 246 252 echo '<div class="notice notice-error is-dismissible"><p>Channel path refresh failed. Please try again later.</p></div>'; -
open-video/trunk/README.txt
r3323935 r3325206 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.0 8 Stable tag: 1.0. 28 Stable tag: 1.0.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 27 27 28 28 == Changelog == 29 = 1.0.3 = 30 * Bug fixes 31 29 32 = 1.0.2 = 30 33 * Bug fixes -
open-video/trunk/open-video.php
r3323935 r3325206 16 16 * 17 17 * @link https://www.open.video/ 18 * @since 1.0. 218 * @since 1.0.3 19 19 * @package Open.Video 20 20 * … … 23 23 * Plugin URI: https://wordpress.org/plugins/open-video 24 24 * Description: Open.Video allows you to easily embed videos to your site from the Open.Video Network. 25 * Version: 1.0. 225 * Version: 1.0.3 26 26 * Requires at least: 6.1 27 27 * Requires PHP: 7.0 … … 41 41 * Rename this for your plugin and update it as you release new versions. 42 42 */ 43 define('OPENVIDEOPLUGIN_VERSION', '1.0. 2');43 define('OPENVIDEOPLUGIN_VERSION', '1.0.3'); 44 44 45 45 global $openvideoplugin_regex;
Note: See TracChangeset
for help on using the changeset viewer.