Plugin Directory

Changeset 3325206


Ignore:
Timestamp:
07/09/2025 06:41:39 PM (9 months ago)
Author:
openvideo
Message:

tagging 1.0.3

Location:
open-video
Files:
5 edited
5 copied

Legend:

Unmodified
Added
Removed
  • open-video/tags/1.0.3/OpenVideoNamespace/Channels.php

    r3323935 r3325206  
    255255            $new_channel_path = trim($data['data'], '/');
    256256            $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            }
    257263            if ($new_channel_path && $new_channel_path !== $current_channel_path) {
    258264                self::openvideoplugin_set_channel_path($new_channel_path);
  • open-video/tags/1.0.3/OpenVideoNamespace/Settings.php

    r3321428 r3325206  
    243243            $result = \OpenVideoNamespace\OpenVideoPlugin_Channels::openvideoplugin_refresh_channel_path();
    244244            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                }
    245251                \error_log('Open Video Plugin Error: ' . $result->get_error_message());
    246252                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  
    66Tested up to: 6.8
    77Requires PHP: 7.0
    8 Stable tag: 1.0.2
     8Stable tag: 1.0.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2727
    2828== Changelog ==
     29= 1.0.3 =
     30* Bug fixes
     31
    2932= 1.0.2 =
    3033* Bug fixes
  • open-video/tags/1.0.3/open-video.php

    r3323935 r3325206  
    1616 *
    1717 * @link              https://www.open.video/
    18  * @since             1.0.2
     18 * @since             1.0.3
    1919 * @package           Open.Video
    2020 *
     
    2323 * Plugin URI:        https://wordpress.org/plugins/open-video
    2424 * Description:       Open.Video allows you to easily embed videos to your site from the Open.Video Network.
    25  * Version:           1.0.2
     25 * Version:           1.0.3
    2626 * Requires at least: 6.1
    2727 * Requires PHP: 7.0
     
    4141 * Rename this for your plugin and update it as you release new versions.
    4242 */
    43 define('OPENVIDEOPLUGIN_VERSION', '1.0.2');
     43define('OPENVIDEOPLUGIN_VERSION', '1.0.3');
    4444
    4545global $openvideoplugin_regex;
  • open-video/trunk/OpenVideoNamespace/Channels.php

    r3323935 r3325206  
    255255            $new_channel_path = trim($data['data'], '/');
    256256            $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            }
    257263            if ($new_channel_path && $new_channel_path !== $current_channel_path) {
    258264                self::openvideoplugin_set_channel_path($new_channel_path);
  • open-video/trunk/OpenVideoNamespace/Settings.php

    r3321428 r3325206  
    243243            $result = \OpenVideoNamespace\OpenVideoPlugin_Channels::openvideoplugin_refresh_channel_path();
    244244            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                }
    245251                \error_log('Open Video Plugin Error: ' . $result->get_error_message());
    246252                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  
    66Tested up to: 6.8
    77Requires PHP: 7.0
    8 Stable tag: 1.0.2
     8Stable tag: 1.0.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2727
    2828== Changelog ==
     29= 1.0.3 =
     30* Bug fixes
     31
    2932= 1.0.2 =
    3033* Bug fixes
  • open-video/trunk/open-video.php

    r3323935 r3325206  
    1616 *
    1717 * @link              https://www.open.video/
    18  * @since             1.0.2
     18 * @since             1.0.3
    1919 * @package           Open.Video
    2020 *
     
    2323 * Plugin URI:        https://wordpress.org/plugins/open-video
    2424 * Description:       Open.Video allows you to easily embed videos to your site from the Open.Video Network.
    25  * Version:           1.0.2
     25 * Version:           1.0.3
    2626 * Requires at least: 6.1
    2727 * Requires PHP: 7.0
     
    4141 * Rename this for your plugin and update it as you release new versions.
    4242 */
    43 define('OPENVIDEOPLUGIN_VERSION', '1.0.2');
     43define('OPENVIDEOPLUGIN_VERSION', '1.0.3');
    4444
    4545global $openvideoplugin_regex;
Note: See TracChangeset for help on using the changeset viewer.