Plugin Directory

Changeset 3258012


Ignore:
Timestamp:
03/18/2025 06:21:57 PM (10 months ago)
Author:
nico23
Message:

Update plugin to version 10.6.9 with NextgenThemes WordPress Plugin Deploy

Location:
advanced-responsive-video-embedder
Files:
64 edited
1 copied

Legend:

Unmodified
Added
Removed
  • advanced-responsive-video-embedder/tags/10.6.9/advanced-responsive-video-embedder.php

    r3256533 r3258012  
    44 * Plugin URI:        https://nextgenthemes.com/plugins/arve-pro/
    55 * Description:       Easy responsive video embeds via URL (like WordPress) or Shortcodes. Supports almost anything you can imagine.
    6  * Version:           10.6.7
     6 * Version:           10.6.9
    77 * Requires PHP:      7.4
    88 * Requires at least: 6.6
     
    2323namespace Nextgenthemes\ARVE;
    2424
    25 const VERSION               = '10.6.7';
    26 const PRO_VERSION_REQUIRED  = '7.0.2';
    27 const NUM_TRACKS            = 3;
    28 const PLUGIN_FILE           = __FILE__;
    29 const PLUGIN_DIR            = __DIR__;
    30 const VIDEO_FILE_EXTENSIONS = array( 'av1mp4', 'mp4', 'm4v', 'webm', 'ogv' );
    31 const DEFAULT_MAXWIDTH      = 900;
    32 const OEMBED_HTML_PRIORITY  = -5;
    33 const VIEW_SCRIPT_HANDLES   = array( 'arve', 'arve-pro', 'arve-sticky-videos', 'arve-random-video' );
     25const VERSION                       = '10.6.9';
     26const PRO_VERSION_REQUIRED          = '7.0.6';
     27const PRIVACY_VERSION_REQUIRED      = '1.1.5';
     28const RANDOMVIDEO_VERSION_REQUIRED  = '2.1.8';
     29const STICKYVIDEOS_VERSION_REQUIRED = '2.0.2';
     30const AMP_VERSION_REQUIRED          = '2.2.1';
     31const NUM_TRACKS                    = 3;
     32const PLUGIN_FILE                   = __FILE__;
     33const PLUGIN_DIR                    = __DIR__;
     34const VIDEO_FILE_EXTENSIONS         = array( 'av1mp4', 'mp4', 'm4v', 'webm', 'ogv' );
     35const DEFAULT_MAXWIDTH              = 900;
     36const OEMBED_HTML_PRIORITY          = -5;
     37const VIEW_SCRIPT_HANDLES           = array( 'arve', 'arve-pro', 'arve-sticky-videos', 'arve-random-video' );
     38const ADDON_NAMES                   = array( 'RandomVideo', 'Pro', 'Privacy', 'StickyVideos', 'AMP' );
    3439// For error messages and stuff on the admin screens.
    3540const ALLOWED_HTML = array(
  • advanced-responsive-video-embedder/tags/10.6.9/build/block.json

    r3256533 r3258012  
    1414    "odysee"
    1515  ],
    16   "version": "10.6.6",
     16  "version": "10.6.8-beta2",
    1717  "textdomain": "advanced-responsive-video-embedder",
    1818  "supports": {
  • advanced-responsive-video-embedder/tags/10.6.9/changelog.md

    r3256533 r3258012  
    44* [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog)
    55
     6### 2025-03-17 10.6.8 ###
     7
     8* Improved: ARVE now handles the execution of addons, not executing outdated addon.
     9* Improved: Added outdated messages for all addons.
     10
    611### 2025-03-16 10.6.7 ###
    712
    8 * Fixed: Compatibility with Advanced Custom Fields WYSIWYG editors. The ARVE shortcode creation button now finally works there.
     13* Fix: Compatibility with Advanced Custom Fields WYSIWYG editors. The ARVE shortcode creation button now finally works there.
    914
    1015### 2025-03-15 10.6.6 ###
  • advanced-responsive-video-embedder/tags/10.6.9/php/Admin/fn-admin.php

    r3256533 r3258012  
    1212use function Nextgenthemes\ARVE\options;
    1313
    14 use function Nextgenthemes\WP\enqueue_asset;
    1514use function Nextgenthemes\WP\remote_get_json_cached;
    1615use function Nextgenthemes\WP\str_contains_any;
    1716use function Nextgenthemes\WP\ver;
    1817
    19 use const Nextgenthemes\ARVE\PRO_VERSION_REQUIRED;
     18use const Nextgenthemes\ARVE\ADDON_NAMES;
    2019use const Nextgenthemes\ARVE\PLUGIN_DIR;
    2120use const Nextgenthemes\ARVE\PLUGIN_FILE;
     
    2322use const Nextgenthemes\ARVE\VERSION;
    2423
    25 function action_admin_init_setup_messages(): void {
    26 
    27     if ( defined( '\Nextgenthemes\ARVE\Pro\VERSION' ) && version_compare( PRO_VERSION_REQUIRED, \Nextgenthemes\ARVE\Pro\VERSION, '>' ) ) {
     24function addon_outdated_notice( string $name ): void {
     25
     26    $version_const_name = '\\Nextgenthemes\\ARVE\\' . $name . '\\VERSION';
     27    $req_ver_const_name = '\\Nextgenthemes\\ARVE\\' . strtoupper( $name ) . '_VERSION_REQUIRED';
     28    $version            = defined( $version_const_name ) ? constant( $version_const_name ) : '';
     29    $req_ver            = defined( $req_ver_const_name ) ? constant( $req_ver_const_name ) : '';
     30
     31    if ( $version && version_compare( $version, $req_ver, '<' ) ) {
    2832        $msg = sprintf(
    29             // Translators: %1$s Pro Version required
    30             __( 'Your ARVE Pro Addon is outdated, you need version %1$s or later. If you have setup your license <a href="%2$s">here</a> semi auto updates should work (Admin panel notice and auto install on confirmation). If not please manually update as <a href="%4$s">described here.</a>', 'advanced-responsive-video-embedder' ),
    31             PRO_VERSION_REQUIRED,
     33            // Translators: %1$s Addon Name, %2$s Version required, %3$s Setup URL, %4$s Manual URL,
     34            __(
     35                'Your ARVE %1$s Addon is outdated, you need version %2$s or later. If you have setup your license <a href="%3$s">here</a> semi auto updates should work (Admin panel notice and install on confirmation). If not please manually update as <a href="%4$s">described here.</a>',
     36                'advanced-responsive-video-embedder'
     37            ),
     38            $name,
     39            $req_ver,
    3240            esc_url( get_admin_url() . 'options-general.php?page=nextgenthemes' ),
    33             'https://nextgenthemes.com/support/',
    3441            'https://nextgenthemes.com/plugins/arve/documentation/installation/'
    3542        );
    3643
    37         if ( str_contains_any( VERSION, array( 'alpha', 'beta' ) ) ) {
    38             $msg = sprintf(
    39                 // Translators: %1$s Pro Version required
    40                 __( 'Your ARVE Pro Addon is outdated, you need version %1$s or later. Pre release updates my need a manual update. Download from <a href="%2$s">your account</a>.', 'advanced-responsive-video-embedder' ),
    41                 PRO_VERSION_REQUIRED,
    42                 esc_url( get_admin_url() . 'options-general.php?page=nextgenthemes' ),
    43                 'https://nextgenthemes.com/my-account/'
    44             );
    45         }
    46 
    47         Notices::instance()->register_notice(
    48             'ngt-arve-outdated-pro-v' . PRO_VERSION_REQUIRED,
     44        Notices::instance()->register_notice(
     45            'ngt-arve-' . $name . '-outdated-v' . $req_ver,
    4946            'notice-error',
    5047            wp_kses( $msg, ALLOWED_HTML, array( 'https' ) ),
     
    5350            )
    5451        );
     52    }
     53}
     54
     55function action_admin_init_setup_messages(): void {
     56
     57    foreach ( ADDON_NAMES as $addon_name ) {
     58        addon_outdated_notice( $addon_name );
    5559    }
    5660
  • advanced-responsive-video-embedder/tags/10.6.9/php/Video.php

    r3256343 r3258012  
    177177        foreach ( (array) $this->oembed_data as $key => $value ) {
    178178            if ( str_contains( $key, 'error' ) ) {
    179                 arve_errors()->add( $key, $value );
     179                arve_errors()->add( $key, $value, $this->oembed_data );
    180180            }
    181181        }
     
    488488
    489489                if ( empty( $img_src ) ) {
    490                     arve_errors()->add( 'no-media-id', __( 'No attachment with that ID', 'advanced-responsive-video-embedder' ) );
     490                    arve_errors()->add(
     491                        'no-media-id',
     492                        // Translators: %s Value of thumbnail attribute
     493                        sprintf( __( 'No attachment with ID <code>%s</code>', 'advanced-responsive-video-embedder' ), $this->thumbnail ),
     494                        $this->thumbnail
     495                    );
    491496                }
    492497            } elseif ( valid_url( $this->thumbnail ) ) {
     
    496501            } else {
    497502
    498                 arve_errors()->add( 'invalid-url', __( 'Not a valid thumbnail URL or Media ID given', 'advanced-responsive-video-embedder' ) );
     503                arve_errors()->add(
     504                    'invalid-url-or-id',
     505                    // Translators: %s Value of thumbnail attribute
     506                    sprintf( __( 'No a valid thumbnail URL or Media ID given <code>%s</code>', 'advanced-responsive-video-embedder' ), $this->thumbnail ),
     507                    $this->thumbnail
     508                );
    499509            }
    500510
  • advanced-responsive-video-embedder/tags/10.6.9/php/fn-oembed.php

    r3256343 r3258012  
    105105}
    106106
     107function cache_is_old_enough( object $oembed_data ): bool {
     108
     109    if ( ! isset( $oembed_data->arve_cachetime ) ) {
     110        return false;
     111    }
     112
     113    $cache_date = DateTime::createFromFormat( DateTime::ATOM, $oembed_data->arve_cachetime );
     114
     115    return $cache_date && ( new DateTime() )->diff( $cache_date )->days > 7;
     116}
     117
    107118function delete_oembed_caches_when_missing_data( object $oembed_data ): array {
    108119
    109     $pro_active = function_exists( __NAMESPACE__ . '\Pro\oembed_data' );
    110     $result     = [];
    111     $url        = $oembed_data->arve_url ?? false;
    112     $provider   = $oembed_data->provider ?? false;
    113     $cachetime  = $oembed_data->arve_cachetime ?? false;
    114 
    115     if ( ! $url ) {
    116         $result['delete_entire_oembed_cache'] = delete_oembed_cache();
    117     }
     120    $pro_active   = function_exists( __NAMESPACE__ . '\Pro\oembed_data' );
     121    $result       = [];
     122    $url          = $oembed_data->arve_url ?? false;
     123    $provider     = $oembed_data->provider ?? false;
     124    $cachetime    = $oembed_data->arve_cachetime ?? false;
     125    $yt_api_error = $oembed_data->youtube_api_error ?? '';
    118126
    119127    if ( ! $provider || ! $cachetime ) {
     
    126134        && ( ! isset( $oembed_data->thumbnail_srcset ) || ! isset( $oembed_data->thumbnail_large_url ) )
    127135    ) {
    128         $result['delete_cache_for_srcset'] = delete_oembed_cache( $url );
    129     }
    130 
    131     if ( $pro_active
    132         && $url
    133         && 'youtube' === $provider
    134         && ! isset( $oembed_data->description )
    135     ) {
    136         $result['delete_youtube_cache_for_description'] = delete_oembed_cache( $url );
    137     }
     136        $result['delete_cache_for_srcset_or_large_thumbnail'] = delete_oembed_cache( $url );
     137    }
     138
     139    // Maybe later
     140    // if ( $pro_active
     141    //  && $url
     142    //  && 'youtube' === $provider
     143    //  && ! isset( $oembed_data->description )
     144    //  && str_contains( $yt_api_error, '403' )
     145    //  && cache_is_old_enough( $oembed_data )
     146    // ) {
     147    //  $result['delete_youtube_cache_for_description'] = delete_oembed_cache( $url );
     148    // }
    138149
    139150    return $result;
  • advanced-responsive-video-embedder/tags/10.6.9/php/fn-shortcode-args.php

    r3252510 r3258012  
    4343
    4444    if ( 'normal' !== $mode
    45         && ! has_action( 'plugins_loaded', 'Nextgenthemes\ARVE\Pro\init' )
     45        && ! function_exists( 'Nextgenthemes\ARVE\Pro\register_assets' )
    4646    ) {
    4747        $err_msg = sprintf(
  • advanced-responsive-video-embedder/tags/10.6.9/php/fn-validation.php

    r3215952 r3258012  
    3838    );
    3939
    40     arve_errors()->add( 'validate_thumbnail', $error_msg );
    41     arve_errors()->add_data( $id_or_url, 'validate_thumbnail' );
     40    arve_errors()->add( 'validate_thumbnail', $error_msg, $id_or_url );
    4241
    4342    return '';
     
    121120            esc_html( $attr_name ),
    122121            esc_html( $value )
    123         )
    124     );
    125 
    126     arve_errors()->add_data(
    127         compact( 'attr_name', 'value' ),
    128         $error_code
     122        ),
     123        compact( 'attr_name', 'value' )
    129124    );
    130125
     
    164159    $ratio = explode( ':', $aspect_ratio );
    165160
    166     if ( empty( $ratio[0] ) || false === filter_var( $ratio[0], FILTER_VALIDATE_FLOAT) ||
    167         empty( $ratio[1] ) || false === filter_var( $ratio[1], FILTER_VALIDATE_FLOAT)
     161    if ( empty( $ratio[0] ) || false === filter_var( $ratio[0], FILTER_VALIDATE_FLOAT ) ||
     162        empty( $ratio[1] ) || false === filter_var( $ratio[1], FILTER_VALIDATE_FLOAT )
    168163    ) {
    169164        arve_errors()->add(
  • advanced-responsive-video-embedder/tags/10.6.9/php/init.php

    r3256343 r3258012  
    55namespace Nextgenthemes\ARVE;
    66
    7 add_action( 'plugins_loaded', __NAMESPACE__ . '\init_920', 9 );
    8 
    9 function init_920(): void {
    10 
    11     stop_outdated_addons_from_executing();
    12     init_public();
    13 
    14     if ( is_admin() ) {
    15         init_admin();
    16     }
    17 }
    18 
    19 function init_public(): void {
     7add_action( 'plugins_loaded', __NAMESPACE__ . '\init', 9 );
     8add_action( 'admin_init', __NAMESPACE__ . '\init_admin', 9 );
     9
     10function init(): void {
    2011
    2112    add_option( 'arve_install_date', time() );
     
    5849    add_filter( 'oembed_dataparse', __NAMESPACE__ . '\filter_oembed_dataparse', PHP_INT_MAX, 3 );
    5950    add_filter( 'embed_oembed_html', __NAMESPACE__ . '\filter_embed_oembed_html', OEMBED_HTML_PRIORITY, 4 );
    60 
    6151    add_action( 'elementor/widgets/register', __NAMESPACE__ . '\register_elementor_widget' );
     52
     53    // Stop outdated addons from executing
     54    remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\Pro\init', 15 );
     55    remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\RandomVideo\init', 15 );
     56    remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\Privacy\init', 16 );
     57
     58    foreach ( ADDON_NAMES as $addon_name ) {
     59        maybe_init_addon( $addon_name );
     60    }
     61}
     62
     63function maybe_init_addon( string $name ): void {
     64
     65    $init_function_name = '\\' . __NAMESPACE__ . '\\' . $name . '\\init';
     66    $version_const_name = '\\' . __NAMESPACE__ . '\\' . $name . '\\VERSION';
     67    $req_ver_const_name = '\\' . __NAMESPACE__ . '\\' . strtoupper( $name ) . '_REQUIRED_VERSION';
     68    $version            = defined( $version_const_name ) ? constant( $version_const_name ) : '';
     69    $req_ver            = defined( $req_ver_const_name ) ? constant( $req_ver_const_name ) : '';
     70
     71    if ( $version && version_compare( $version, $req_ver, '>=' ) && function_exists( $init_function_name ) ) {
     72        $init_function_name();
     73    }
    6274}
    6375
     
    6981    require_once PLUGIN_DIR . '/php/Admin/fn-debug-info.php';
    7082
    71     // Admin Hooks
    7283    add_action( 'nextgenthemes/arve/admin/settings/sidebar', __NAMESPACE__ . '\Admin\settings_sidebar' );
    7384    add_action( 'nextgenthemes/arve/admin/settings/content', __NAMESPACE__ . '\Admin\settings_content' );
     
    230241    return $message;
    231242}
    232 
    233 function stop_outdated_addons_from_executing(): void {
    234 
    235     if ( defined( 'Nextgenthemes\ARVE\Pro\VERSION' )
    236         && version_compare( \Nextgenthemes\ARVE\Pro\VERSION, PRO_VERSION_REQUIRED, '<' )
    237     ) {
    238         remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\Pro\init', 15 );
    239     }
    240 }
  • advanced-responsive-video-embedder/tags/10.6.9/readme.txt

    r3256533 r3258012  
    66Tested up to: 6.8
    77Requires PHP: 7.4
    8 Stable tag: 10.6.7
     8Stable tag: 10.6.9
    99License: GPL-3.0
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    196196* [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog)
    197197
     198### 2025-03-17 10.6.8 ###
     199
     200* Improved: ARVE now handles the execution of addons, not executing outdated addon.
     201* Improved: Added outdated messages for all addons.
     202
    198203### 2025-03-16 10.6.7 ###
    199204
    200 * Fixed: Compatibility with Advanced Custom Fields WYSIWYG editors. The ARVE shortcode creation button now finally works there.
     205* Fix: Compatibility with Advanced Custom Fields WYSIWYG editors. The ARVE shortcode creation button now finally works there.
    201206
    202207### 2025-03-15 10.6.6 ###
  • advanced-responsive-video-embedder/tags/10.6.9/src/block.json

    r3256533 r3258012  
    1414        "odysee"
    1515    ],
    16     "version": "10.6.7",
     16    "version": "10.6.9",
    1717    "textdomain": "advanced-responsive-video-embedder",
    1818    "supports": {
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/autoload_packages.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/automattic/jetpack-autoloader/CHANGELOG.md

    r3256343 r3258012  
    55The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
    66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
     7
     8## [5.0.4] - 2025-03-17
     9### Changed
     10- Internal updates.
    711
    812## [5.0.3] - 2025-03-12
     
    411415- Add Custom Autoloader
    412416
     417[5.0.4]: https://github.com/Automattic/jetpack-autoloader/compare/v5.0.3...v5.0.4
    413418[5.0.3]: https://github.com/Automattic/jetpack-autoloader/compare/v5.0.2...v5.0.3
    414419[5.0.2]: https://github.com/Automattic/jetpack-autoloader/compare/v5.0.1...v5.0.2
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php

    r3256343 r3258012  
    2222class AutoloadGenerator {
    2323
    24     const VERSION = '5.0.3';
     24    const VERSION = '5.0.4';
    2525
    2626    /**
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/composer/installed.json

    r3256533 r3258012  
    33        {
    44            "name": "automattic/jetpack-autoloader",
    5             "version": "v5.0.3",
    6             "version_normalized": "5.0.3.0",
     5            "version": "v5.0.4",
     6            "version_normalized": "5.0.4.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/Automattic/jetpack-autoloader.git",
    10                 "reference": "108cc708cfc7b7a0e730b2bf12f389593f56f0a5"
     10                "reference": "1d86b2d9aa97eb109bca5b5f0593f0c32647de9c"
    1111            },
    1212            "dist": {
    1313                "type": "zip",
    14                 "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/108cc708cfc7b7a0e730b2bf12f389593f56f0a5",
    15                 "reference": "108cc708cfc7b7a0e730b2bf12f389593f56f0a5",
     14                "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/1d86b2d9aa97eb109bca5b5f0593f0c32647de9c",
     15                "reference": "1d86b2d9aa97eb109bca5b5f0593f0c32647de9c",
    1616                "shasum": ""
    1717            },
     
    2626                "yoast/phpunit-polyfills": "^1.1.1"
    2727            },
    28             "time": "2025-03-12T19:15:00+00:00",
     28            "time": "2025-03-17T16:43:20+00:00",
    2929            "type": "composer-plugin",
    3030            "extra": {
     
    6565            ],
    6666            "support": {
    67                 "source": "https://github.com/Automattic/jetpack-autoloader/tree/v5.0.3"
     67                "source": "https://github.com/Automattic/jetpack-autoloader/tree/v5.0.4"
    6868            },
    6969            "install-path": "../automattic/jetpack-autoloader"
     
    7676                "type": "path",
    7777                "url": "../../../../../../dev/composer-packages/wp-settings",
    78                 "reference": "046259272b104d5254e2fea589102cb7da259cdf"
     78                "reference": "627ae60f001d0462042693ed7daf9a4dbe34067b"
    7979            },
    8080            "require": {
    81                 "php": "^7.4 || ^8.0"
     81                "php": ">=7.4"
    8282            },
    8383            "type": "library",
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/composer/installed.php

    r3256533 r3258012  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => '9eb22b68dbfaa1ddad6cb3d2684f4589d2b7766c',
     6        'reference' => '52e7cf4a08ec9df7ba71705673236b3c1c1d6980',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'automattic/jetpack-autoloader' => array(
    14             'pretty_version' => 'v5.0.3',
    15             'version' => '5.0.3.0',
    16             'reference' => '108cc708cfc7b7a0e730b2bf12f389593f56f0a5',
     14            'pretty_version' => 'v5.0.4',
     15            'version' => '5.0.4.0',
     16            'reference' => '1d86b2d9aa97eb109bca5b5f0593f0c32647de9c',
    1717            'type' => 'composer-plugin',
    1818            'install_path' => __DIR__ . '/../automattic/jetpack-autoloader',
     
    2323            'pretty_version' => 'dev-master',
    2424            'version' => 'dev-master',
    25             'reference' => '9eb22b68dbfaa1ddad6cb3d2684f4589d2b7766c',
     25            'reference' => '52e7cf4a08ec9df7ba71705673236b3c1c1d6980',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
     
    3232            'pretty_version' => 'dev-master',
    3333            'version' => 'dev-master',
    34             'reference' => '046259272b104d5254e2fea589102cb7da259cdf',
     34            'reference' => '627ae60f001d0462042693ed7daf9a4dbe34067b',
    3535            'type' => 'library',
    3636            'install_path' => __DIR__ . '/../nextgenthemes/wp-settings',
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/composer/jetpack_autoload_classmap.php

    r3256343 r3258012  
    88return array(
    99    'Autoloader' => array(
    10         'version' => '5.0.3',
     10        'version' => '5.0.4',
    1111        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader.php'
    1212    ),
    1313    'Autoloader_Handler' => array(
    14         'version' => '5.0.3',
     14        'version' => '5.0.4',
    1515        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader-handler.php'
    1616    ),
    1717    'Autoloader_Locator' => array(
    18         'version' => '5.0.3',
     18        'version' => '5.0.4',
    1919        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader-locator.php'
    2020    ),
    2121    'Automattic\\Jetpack\\Autoloader\\AutoloadFileWriter' => array(
    22         'version' => '5.0.3',
     22        'version' => '5.0.4',
    2323        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadFileWriter.php'
    2424    ),
    2525    'Automattic\\Jetpack\\Autoloader\\AutoloadGenerator' => array(
    26         'version' => '5.0.3',
     26        'version' => '5.0.4',
    2727        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadGenerator.php'
    2828    ),
    2929    'Automattic\\Jetpack\\Autoloader\\AutoloadProcessor' => array(
    30         'version' => '5.0.3',
     30        'version' => '5.0.4',
    3131        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadProcessor.php'
    3232    ),
    3333    'Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin' => array(
    34         'version' => '5.0.3',
     34        'version' => '5.0.4',
    3535        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php'
    3636    ),
    3737    'Automattic\\Jetpack\\Autoloader\\ManifestGenerator' => array(
    38         'version' => '5.0.3',
     38        'version' => '5.0.4',
    3939        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/ManifestGenerator.php'
    4040    ),
    4141    'Container' => array(
    42         'version' => '5.0.3',
     42        'version' => '5.0.4',
    4343        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-container.php'
    4444    ),
    4545    'Hook_Manager' => array(
    46         'version' => '5.0.3',
     46        'version' => '5.0.4',
    4747        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-hook-manager.php'
    4848    ),
    4949    'Latest_Autoloader_Guard' => array(
    50         'version' => '5.0.3',
     50        'version' => '5.0.4',
    5151        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-latest-autoloader-guard.php'
    5252    ),
    5353    'Manifest_Reader' => array(
    54         'version' => '5.0.3',
     54        'version' => '5.0.4',
    5555        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-manifest-reader.php'
    5656    ),
    5757    'PHP_Autoloader' => array(
    58         'version' => '5.0.3',
     58        'version' => '5.0.4',
    5959        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-php-autoloader.php'
    6060    ),
    6161    'Path_Processor' => array(
    62         'version' => '5.0.3',
     62        'version' => '5.0.4',
    6363        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-path-processor.php'
    6464    ),
    6565    'Plugin_Locator' => array(
    66         'version' => '5.0.3',
     66        'version' => '5.0.4',
    6767        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-plugin-locator.php'
    6868    ),
    6969    'Plugins_Handler' => array(
    70         'version' => '5.0.3',
     70        'version' => '5.0.4',
    7171        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-plugins-handler.php'
    7272    ),
    7373    'Shutdown_Handler' => array(
    74         'version' => '5.0.3',
     74        'version' => '5.0.4',
    7575        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-shutdown-handler.php'
    7676    ),
    7777    'Version_Loader' => array(
    78         'version' => '5.0.3',
     78        'version' => '5.0.4',
    7979        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-version-loader.php'
    8080    ),
    8181    'Version_Selector' => array(
    82         'version' => '5.0.3',
     82        'version' => '5.0.4',
    8383        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-version-selector.php'
    8484    ),
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/jetpack-autoloader/class-autoloader-handler.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/jetpack-autoloader/class-autoloader-locator.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/jetpack-autoloader/class-autoloader.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/jetpack-autoloader/class-container.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/jetpack-autoloader/class-hook-manager.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/jetpack-autoloader/class-latest-autoloader-guard.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/jetpack-autoloader/class-manifest-reader.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/jetpack-autoloader/class-path-processor.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/jetpack-autoloader/class-php-autoloader.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/jetpack-autoloader/class-plugin-locator.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/jetpack-autoloader/class-plugins-handler.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/jetpack-autoloader/class-shutdown-handler.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/jetpack-autoloader/class-version-loader.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/jetpack-autoloader/class-version-selector.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/tags/10.6.9/vendor/nextgenthemes/wp-settings/composer.json

    r3256343 r3258012  
    1414    ],
    1515    "require": {
    16         "php": "^7.4 || ^8.0"
     16        "php": ">=7.4"
    1717    }
    1818}
  • advanced-responsive-video-embedder/trunk/advanced-responsive-video-embedder.php

    r3256533 r3258012  
    44 * Plugin URI:        https://nextgenthemes.com/plugins/arve-pro/
    55 * Description:       Easy responsive video embeds via URL (like WordPress) or Shortcodes. Supports almost anything you can imagine.
    6  * Version:           10.6.7
     6 * Version:           10.6.9
    77 * Requires PHP:      7.4
    88 * Requires at least: 6.6
     
    2323namespace Nextgenthemes\ARVE;
    2424
    25 const VERSION               = '10.6.7';
    26 const PRO_VERSION_REQUIRED  = '7.0.2';
    27 const NUM_TRACKS            = 3;
    28 const PLUGIN_FILE           = __FILE__;
    29 const PLUGIN_DIR            = __DIR__;
    30 const VIDEO_FILE_EXTENSIONS = array( 'av1mp4', 'mp4', 'm4v', 'webm', 'ogv' );
    31 const DEFAULT_MAXWIDTH      = 900;
    32 const OEMBED_HTML_PRIORITY  = -5;
    33 const VIEW_SCRIPT_HANDLES   = array( 'arve', 'arve-pro', 'arve-sticky-videos', 'arve-random-video' );
     25const VERSION                       = '10.6.9';
     26const PRO_VERSION_REQUIRED          = '7.0.6';
     27const PRIVACY_VERSION_REQUIRED      = '1.1.5';
     28const RANDOMVIDEO_VERSION_REQUIRED  = '2.1.8';
     29const STICKYVIDEOS_VERSION_REQUIRED = '2.0.2';
     30const AMP_VERSION_REQUIRED          = '2.2.1';
     31const NUM_TRACKS                    = 3;
     32const PLUGIN_FILE                   = __FILE__;
     33const PLUGIN_DIR                    = __DIR__;
     34const VIDEO_FILE_EXTENSIONS         = array( 'av1mp4', 'mp4', 'm4v', 'webm', 'ogv' );
     35const DEFAULT_MAXWIDTH              = 900;
     36const OEMBED_HTML_PRIORITY          = -5;
     37const VIEW_SCRIPT_HANDLES           = array( 'arve', 'arve-pro', 'arve-sticky-videos', 'arve-random-video' );
     38const ADDON_NAMES                   = array( 'RandomVideo', 'Pro', 'Privacy', 'StickyVideos', 'AMP' );
    3439// For error messages and stuff on the admin screens.
    3540const ALLOWED_HTML = array(
  • advanced-responsive-video-embedder/trunk/build/block.json

    r3256533 r3258012  
    1414    "odysee"
    1515  ],
    16   "version": "10.6.6",
     16  "version": "10.6.8-beta2",
    1717  "textdomain": "advanced-responsive-video-embedder",
    1818  "supports": {
  • advanced-responsive-video-embedder/trunk/changelog.md

    r3256533 r3258012  
    44* [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog)
    55
     6### 2025-03-17 10.6.8 ###
     7
     8* Improved: ARVE now handles the execution of addons, not executing outdated addon.
     9* Improved: Added outdated messages for all addons.
     10
    611### 2025-03-16 10.6.7 ###
    712
    8 * Fixed: Compatibility with Advanced Custom Fields WYSIWYG editors. The ARVE shortcode creation button now finally works there.
     13* Fix: Compatibility with Advanced Custom Fields WYSIWYG editors. The ARVE shortcode creation button now finally works there.
    914
    1015### 2025-03-15 10.6.6 ###
  • advanced-responsive-video-embedder/trunk/php/Admin/fn-admin.php

    r3256533 r3258012  
    1212use function Nextgenthemes\ARVE\options;
    1313
    14 use function Nextgenthemes\WP\enqueue_asset;
    1514use function Nextgenthemes\WP\remote_get_json_cached;
    1615use function Nextgenthemes\WP\str_contains_any;
    1716use function Nextgenthemes\WP\ver;
    1817
    19 use const Nextgenthemes\ARVE\PRO_VERSION_REQUIRED;
     18use const Nextgenthemes\ARVE\ADDON_NAMES;
    2019use const Nextgenthemes\ARVE\PLUGIN_DIR;
    2120use const Nextgenthemes\ARVE\PLUGIN_FILE;
     
    2322use const Nextgenthemes\ARVE\VERSION;
    2423
    25 function action_admin_init_setup_messages(): void {
    26 
    27     if ( defined( '\Nextgenthemes\ARVE\Pro\VERSION' ) && version_compare( PRO_VERSION_REQUIRED, \Nextgenthemes\ARVE\Pro\VERSION, '>' ) ) {
     24function addon_outdated_notice( string $name ): void {
     25
     26    $version_const_name = '\\Nextgenthemes\\ARVE\\' . $name . '\\VERSION';
     27    $req_ver_const_name = '\\Nextgenthemes\\ARVE\\' . strtoupper( $name ) . '_VERSION_REQUIRED';
     28    $version            = defined( $version_const_name ) ? constant( $version_const_name ) : '';
     29    $req_ver            = defined( $req_ver_const_name ) ? constant( $req_ver_const_name ) : '';
     30
     31    if ( $version && version_compare( $version, $req_ver, '<' ) ) {
    2832        $msg = sprintf(
    29             // Translators: %1$s Pro Version required
    30             __( 'Your ARVE Pro Addon is outdated, you need version %1$s or later. If you have setup your license <a href="%2$s">here</a> semi auto updates should work (Admin panel notice and auto install on confirmation). If not please manually update as <a href="%4$s">described here.</a>', 'advanced-responsive-video-embedder' ),
    31             PRO_VERSION_REQUIRED,
     33            // Translators: %1$s Addon Name, %2$s Version required, %3$s Setup URL, %4$s Manual URL,
     34            __(
     35                'Your ARVE %1$s Addon is outdated, you need version %2$s or later. If you have setup your license <a href="%3$s">here</a> semi auto updates should work (Admin panel notice and install on confirmation). If not please manually update as <a href="%4$s">described here.</a>',
     36                'advanced-responsive-video-embedder'
     37            ),
     38            $name,
     39            $req_ver,
    3240            esc_url( get_admin_url() . 'options-general.php?page=nextgenthemes' ),
    33             'https://nextgenthemes.com/support/',
    3441            'https://nextgenthemes.com/plugins/arve/documentation/installation/'
    3542        );
    3643
    37         if ( str_contains_any( VERSION, array( 'alpha', 'beta' ) ) ) {
    38             $msg = sprintf(
    39                 // Translators: %1$s Pro Version required
    40                 __( 'Your ARVE Pro Addon is outdated, you need version %1$s or later. Pre release updates my need a manual update. Download from <a href="%2$s">your account</a>.', 'advanced-responsive-video-embedder' ),
    41                 PRO_VERSION_REQUIRED,
    42                 esc_url( get_admin_url() . 'options-general.php?page=nextgenthemes' ),
    43                 'https://nextgenthemes.com/my-account/'
    44             );
    45         }
    46 
    47         Notices::instance()->register_notice(
    48             'ngt-arve-outdated-pro-v' . PRO_VERSION_REQUIRED,
     44        Notices::instance()->register_notice(
     45            'ngt-arve-' . $name . '-outdated-v' . $req_ver,
    4946            'notice-error',
    5047            wp_kses( $msg, ALLOWED_HTML, array( 'https' ) ),
     
    5350            )
    5451        );
     52    }
     53}
     54
     55function action_admin_init_setup_messages(): void {
     56
     57    foreach ( ADDON_NAMES as $addon_name ) {
     58        addon_outdated_notice( $addon_name );
    5559    }
    5660
  • advanced-responsive-video-embedder/trunk/php/Video.php

    r3256343 r3258012  
    177177        foreach ( (array) $this->oembed_data as $key => $value ) {
    178178            if ( str_contains( $key, 'error' ) ) {
    179                 arve_errors()->add( $key, $value );
     179                arve_errors()->add( $key, $value, $this->oembed_data );
    180180            }
    181181        }
     
    488488
    489489                if ( empty( $img_src ) ) {
    490                     arve_errors()->add( 'no-media-id', __( 'No attachment with that ID', 'advanced-responsive-video-embedder' ) );
     490                    arve_errors()->add(
     491                        'no-media-id',
     492                        // Translators: %s Value of thumbnail attribute
     493                        sprintf( __( 'No attachment with ID <code>%s</code>', 'advanced-responsive-video-embedder' ), $this->thumbnail ),
     494                        $this->thumbnail
     495                    );
    491496                }
    492497            } elseif ( valid_url( $this->thumbnail ) ) {
     
    496501            } else {
    497502
    498                 arve_errors()->add( 'invalid-url', __( 'Not a valid thumbnail URL or Media ID given', 'advanced-responsive-video-embedder' ) );
     503                arve_errors()->add(
     504                    'invalid-url-or-id',
     505                    // Translators: %s Value of thumbnail attribute
     506                    sprintf( __( 'No a valid thumbnail URL or Media ID given <code>%s</code>', 'advanced-responsive-video-embedder' ), $this->thumbnail ),
     507                    $this->thumbnail
     508                );
    499509            }
    500510
  • advanced-responsive-video-embedder/trunk/php/fn-oembed.php

    r3256343 r3258012  
    105105}
    106106
     107function cache_is_old_enough( object $oembed_data ): bool {
     108
     109    if ( ! isset( $oembed_data->arve_cachetime ) ) {
     110        return false;
     111    }
     112
     113    $cache_date = DateTime::createFromFormat( DateTime::ATOM, $oembed_data->arve_cachetime );
     114
     115    return $cache_date && ( new DateTime() )->diff( $cache_date )->days > 7;
     116}
     117
    107118function delete_oembed_caches_when_missing_data( object $oembed_data ): array {
    108119
    109     $pro_active = function_exists( __NAMESPACE__ . '\Pro\oembed_data' );
    110     $result     = [];
    111     $url        = $oembed_data->arve_url ?? false;
    112     $provider   = $oembed_data->provider ?? false;
    113     $cachetime  = $oembed_data->arve_cachetime ?? false;
    114 
    115     if ( ! $url ) {
    116         $result['delete_entire_oembed_cache'] = delete_oembed_cache();
    117     }
     120    $pro_active   = function_exists( __NAMESPACE__ . '\Pro\oembed_data' );
     121    $result       = [];
     122    $url          = $oembed_data->arve_url ?? false;
     123    $provider     = $oembed_data->provider ?? false;
     124    $cachetime    = $oembed_data->arve_cachetime ?? false;
     125    $yt_api_error = $oembed_data->youtube_api_error ?? '';
    118126
    119127    if ( ! $provider || ! $cachetime ) {
     
    126134        && ( ! isset( $oembed_data->thumbnail_srcset ) || ! isset( $oembed_data->thumbnail_large_url ) )
    127135    ) {
    128         $result['delete_cache_for_srcset'] = delete_oembed_cache( $url );
    129     }
    130 
    131     if ( $pro_active
    132         && $url
    133         && 'youtube' === $provider
    134         && ! isset( $oembed_data->description )
    135     ) {
    136         $result['delete_youtube_cache_for_description'] = delete_oembed_cache( $url );
    137     }
     136        $result['delete_cache_for_srcset_or_large_thumbnail'] = delete_oembed_cache( $url );
     137    }
     138
     139    // Maybe later
     140    // if ( $pro_active
     141    //  && $url
     142    //  && 'youtube' === $provider
     143    //  && ! isset( $oembed_data->description )
     144    //  && str_contains( $yt_api_error, '403' )
     145    //  && cache_is_old_enough( $oembed_data )
     146    // ) {
     147    //  $result['delete_youtube_cache_for_description'] = delete_oembed_cache( $url );
     148    // }
    138149
    139150    return $result;
  • advanced-responsive-video-embedder/trunk/php/fn-shortcode-args.php

    r3252510 r3258012  
    4343
    4444    if ( 'normal' !== $mode
    45         && ! has_action( 'plugins_loaded', 'Nextgenthemes\ARVE\Pro\init' )
     45        && ! function_exists( 'Nextgenthemes\ARVE\Pro\register_assets' )
    4646    ) {
    4747        $err_msg = sprintf(
  • advanced-responsive-video-embedder/trunk/php/fn-validation.php

    r3215952 r3258012  
    3838    );
    3939
    40     arve_errors()->add( 'validate_thumbnail', $error_msg );
    41     arve_errors()->add_data( $id_or_url, 'validate_thumbnail' );
     40    arve_errors()->add( 'validate_thumbnail', $error_msg, $id_or_url );
    4241
    4342    return '';
     
    121120            esc_html( $attr_name ),
    122121            esc_html( $value )
    123         )
    124     );
    125 
    126     arve_errors()->add_data(
    127         compact( 'attr_name', 'value' ),
    128         $error_code
     122        ),
     123        compact( 'attr_name', 'value' )
    129124    );
    130125
     
    164159    $ratio = explode( ':', $aspect_ratio );
    165160
    166     if ( empty( $ratio[0] ) || false === filter_var( $ratio[0], FILTER_VALIDATE_FLOAT) ||
    167         empty( $ratio[1] ) || false === filter_var( $ratio[1], FILTER_VALIDATE_FLOAT)
     161    if ( empty( $ratio[0] ) || false === filter_var( $ratio[0], FILTER_VALIDATE_FLOAT ) ||
     162        empty( $ratio[1] ) || false === filter_var( $ratio[1], FILTER_VALIDATE_FLOAT )
    168163    ) {
    169164        arve_errors()->add(
  • advanced-responsive-video-embedder/trunk/php/init.php

    r3256343 r3258012  
    55namespace Nextgenthemes\ARVE;
    66
    7 add_action( 'plugins_loaded', __NAMESPACE__ . '\init_920', 9 );
    8 
    9 function init_920(): void {
    10 
    11     stop_outdated_addons_from_executing();
    12     init_public();
    13 
    14     if ( is_admin() ) {
    15         init_admin();
    16     }
    17 }
    18 
    19 function init_public(): void {
     7add_action( 'plugins_loaded', __NAMESPACE__ . '\init', 9 );
     8add_action( 'admin_init', __NAMESPACE__ . '\init_admin', 9 );
     9
     10function init(): void {
    2011
    2112    add_option( 'arve_install_date', time() );
     
    5849    add_filter( 'oembed_dataparse', __NAMESPACE__ . '\filter_oembed_dataparse', PHP_INT_MAX, 3 );
    5950    add_filter( 'embed_oembed_html', __NAMESPACE__ . '\filter_embed_oembed_html', OEMBED_HTML_PRIORITY, 4 );
    60 
    6151    add_action( 'elementor/widgets/register', __NAMESPACE__ . '\register_elementor_widget' );
     52
     53    // Stop outdated addons from executing
     54    remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\Pro\init', 15 );
     55    remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\RandomVideo\init', 15 );
     56    remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\Privacy\init', 16 );
     57
     58    foreach ( ADDON_NAMES as $addon_name ) {
     59        maybe_init_addon( $addon_name );
     60    }
     61}
     62
     63function maybe_init_addon( string $name ): void {
     64
     65    $init_function_name = '\\' . __NAMESPACE__ . '\\' . $name . '\\init';
     66    $version_const_name = '\\' . __NAMESPACE__ . '\\' . $name . '\\VERSION';
     67    $req_ver_const_name = '\\' . __NAMESPACE__ . '\\' . strtoupper( $name ) . '_REQUIRED_VERSION';
     68    $version            = defined( $version_const_name ) ? constant( $version_const_name ) : '';
     69    $req_ver            = defined( $req_ver_const_name ) ? constant( $req_ver_const_name ) : '';
     70
     71    if ( $version && version_compare( $version, $req_ver, '>=' ) && function_exists( $init_function_name ) ) {
     72        $init_function_name();
     73    }
    6274}
    6375
     
    6981    require_once PLUGIN_DIR . '/php/Admin/fn-debug-info.php';
    7082
    71     // Admin Hooks
    7283    add_action( 'nextgenthemes/arve/admin/settings/sidebar', __NAMESPACE__ . '\Admin\settings_sidebar' );
    7384    add_action( 'nextgenthemes/arve/admin/settings/content', __NAMESPACE__ . '\Admin\settings_content' );
     
    230241    return $message;
    231242}
    232 
    233 function stop_outdated_addons_from_executing(): void {
    234 
    235     if ( defined( 'Nextgenthemes\ARVE\Pro\VERSION' )
    236         && version_compare( \Nextgenthemes\ARVE\Pro\VERSION, PRO_VERSION_REQUIRED, '<' )
    237     ) {
    238         remove_action( 'plugins_loaded', 'Nextgenthemes\ARVE\Pro\init', 15 );
    239     }
    240 }
  • advanced-responsive-video-embedder/trunk/readme.txt

    r3256533 r3258012  
    66Tested up to: 6.8
    77Requires PHP: 7.4
    8 Stable tag: 10.6.7
     8Stable tag: 10.6.9
    99License: GPL-3.0
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    196196* [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog)
    197197
     198### 2025-03-17 10.6.8 ###
     199
     200* Improved: ARVE now handles the execution of addons, not executing outdated addon.
     201* Improved: Added outdated messages for all addons.
     202
    198203### 2025-03-16 10.6.7 ###
    199204
    200 * Fixed: Compatibility with Advanced Custom Fields WYSIWYG editors. The ARVE shortcode creation button now finally works there.
     205* Fix: Compatibility with Advanced Custom Fields WYSIWYG editors. The ARVE shortcode creation button now finally works there.
    201206
    202207### 2025-03-15 10.6.6 ###
  • advanced-responsive-video-embedder/trunk/src/block.json

    r3256533 r3258012  
    1414        "odysee"
    1515    ],
    16     "version": "10.6.7",
     16    "version": "10.6.9",
    1717    "textdomain": "advanced-responsive-video-embedder",
    1818    "supports": {
  • advanced-responsive-video-embedder/trunk/vendor/autoload_packages.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/automattic/jetpack-autoloader/CHANGELOG.md

    r3256343 r3258012  
    55The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
    66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
     7
     8## [5.0.4] - 2025-03-17
     9### Changed
     10- Internal updates.
    711
    812## [5.0.3] - 2025-03-12
     
    411415- Add Custom Autoloader
    412416
     417[5.0.4]: https://github.com/Automattic/jetpack-autoloader/compare/v5.0.3...v5.0.4
    413418[5.0.3]: https://github.com/Automattic/jetpack-autoloader/compare/v5.0.2...v5.0.3
    414419[5.0.2]: https://github.com/Automattic/jetpack-autoloader/compare/v5.0.1...v5.0.2
  • advanced-responsive-video-embedder/trunk/vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php

    r3256343 r3258012  
    2222class AutoloadGenerator {
    2323
    24     const VERSION = '5.0.3';
     24    const VERSION = '5.0.4';
    2525
    2626    /**
  • advanced-responsive-video-embedder/trunk/vendor/composer/installed.json

    r3256533 r3258012  
    33        {
    44            "name": "automattic/jetpack-autoloader",
    5             "version": "v5.0.3",
    6             "version_normalized": "5.0.3.0",
     5            "version": "v5.0.4",
     6            "version_normalized": "5.0.4.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/Automattic/jetpack-autoloader.git",
    10                 "reference": "108cc708cfc7b7a0e730b2bf12f389593f56f0a5"
     10                "reference": "1d86b2d9aa97eb109bca5b5f0593f0c32647de9c"
    1111            },
    1212            "dist": {
    1313                "type": "zip",
    14                 "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/108cc708cfc7b7a0e730b2bf12f389593f56f0a5",
    15                 "reference": "108cc708cfc7b7a0e730b2bf12f389593f56f0a5",
     14                "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/1d86b2d9aa97eb109bca5b5f0593f0c32647de9c",
     15                "reference": "1d86b2d9aa97eb109bca5b5f0593f0c32647de9c",
    1616                "shasum": ""
    1717            },
     
    2626                "yoast/phpunit-polyfills": "^1.1.1"
    2727            },
    28             "time": "2025-03-12T19:15:00+00:00",
     28            "time": "2025-03-17T16:43:20+00:00",
    2929            "type": "composer-plugin",
    3030            "extra": {
     
    6565            ],
    6666            "support": {
    67                 "source": "https://github.com/Automattic/jetpack-autoloader/tree/v5.0.3"
     67                "source": "https://github.com/Automattic/jetpack-autoloader/tree/v5.0.4"
    6868            },
    6969            "install-path": "../automattic/jetpack-autoloader"
     
    7676                "type": "path",
    7777                "url": "../../../../../../dev/composer-packages/wp-settings",
    78                 "reference": "046259272b104d5254e2fea589102cb7da259cdf"
     78                "reference": "627ae60f001d0462042693ed7daf9a4dbe34067b"
    7979            },
    8080            "require": {
    81                 "php": "^7.4 || ^8.0"
     81                "php": ">=7.4"
    8282            },
    8383            "type": "library",
  • advanced-responsive-video-embedder/trunk/vendor/composer/installed.php

    r3256533 r3258012  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => '9eb22b68dbfaa1ddad6cb3d2684f4589d2b7766c',
     6        'reference' => '52e7cf4a08ec9df7ba71705673236b3c1c1d6980',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'automattic/jetpack-autoloader' => array(
    14             'pretty_version' => 'v5.0.3',
    15             'version' => '5.0.3.0',
    16             'reference' => '108cc708cfc7b7a0e730b2bf12f389593f56f0a5',
     14            'pretty_version' => 'v5.0.4',
     15            'version' => '5.0.4.0',
     16            'reference' => '1d86b2d9aa97eb109bca5b5f0593f0c32647de9c',
    1717            'type' => 'composer-plugin',
    1818            'install_path' => __DIR__ . '/../automattic/jetpack-autoloader',
     
    2323            'pretty_version' => 'dev-master',
    2424            'version' => 'dev-master',
    25             'reference' => '9eb22b68dbfaa1ddad6cb3d2684f4589d2b7766c',
     25            'reference' => '52e7cf4a08ec9df7ba71705673236b3c1c1d6980',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
     
    3232            'pretty_version' => 'dev-master',
    3333            'version' => 'dev-master',
    34             'reference' => '046259272b104d5254e2fea589102cb7da259cdf',
     34            'reference' => '627ae60f001d0462042693ed7daf9a4dbe34067b',
    3535            'type' => 'library',
    3636            'install_path' => __DIR__ . '/../nextgenthemes/wp-settings',
  • advanced-responsive-video-embedder/trunk/vendor/composer/jetpack_autoload_classmap.php

    r3256343 r3258012  
    88return array(
    99    'Autoloader' => array(
    10         'version' => '5.0.3',
     10        'version' => '5.0.4',
    1111        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader.php'
    1212    ),
    1313    'Autoloader_Handler' => array(
    14         'version' => '5.0.3',
     14        'version' => '5.0.4',
    1515        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader-handler.php'
    1616    ),
    1717    'Autoloader_Locator' => array(
    18         'version' => '5.0.3',
     18        'version' => '5.0.4',
    1919        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader-locator.php'
    2020    ),
    2121    'Automattic\\Jetpack\\Autoloader\\AutoloadFileWriter' => array(
    22         'version' => '5.0.3',
     22        'version' => '5.0.4',
    2323        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadFileWriter.php'
    2424    ),
    2525    'Automattic\\Jetpack\\Autoloader\\AutoloadGenerator' => array(
    26         'version' => '5.0.3',
     26        'version' => '5.0.4',
    2727        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadGenerator.php'
    2828    ),
    2929    'Automattic\\Jetpack\\Autoloader\\AutoloadProcessor' => array(
    30         'version' => '5.0.3',
     30        'version' => '5.0.4',
    3131        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadProcessor.php'
    3232    ),
    3333    'Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin' => array(
    34         'version' => '5.0.3',
     34        'version' => '5.0.4',
    3535        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php'
    3636    ),
    3737    'Automattic\\Jetpack\\Autoloader\\ManifestGenerator' => array(
    38         'version' => '5.0.3',
     38        'version' => '5.0.4',
    3939        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/ManifestGenerator.php'
    4040    ),
    4141    'Container' => array(
    42         'version' => '5.0.3',
     42        'version' => '5.0.4',
    4343        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-container.php'
    4444    ),
    4545    'Hook_Manager' => array(
    46         'version' => '5.0.3',
     46        'version' => '5.0.4',
    4747        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-hook-manager.php'
    4848    ),
    4949    'Latest_Autoloader_Guard' => array(
    50         'version' => '5.0.3',
     50        'version' => '5.0.4',
    5151        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-latest-autoloader-guard.php'
    5252    ),
    5353    'Manifest_Reader' => array(
    54         'version' => '5.0.3',
     54        'version' => '5.0.4',
    5555        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-manifest-reader.php'
    5656    ),
    5757    'PHP_Autoloader' => array(
    58         'version' => '5.0.3',
     58        'version' => '5.0.4',
    5959        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-php-autoloader.php'
    6060    ),
    6161    'Path_Processor' => array(
    62         'version' => '5.0.3',
     62        'version' => '5.0.4',
    6363        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-path-processor.php'
    6464    ),
    6565    'Plugin_Locator' => array(
    66         'version' => '5.0.3',
     66        'version' => '5.0.4',
    6767        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-plugin-locator.php'
    6868    ),
    6969    'Plugins_Handler' => array(
    70         'version' => '5.0.3',
     70        'version' => '5.0.4',
    7171        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-plugins-handler.php'
    7272    ),
    7373    'Shutdown_Handler' => array(
    74         'version' => '5.0.3',
     74        'version' => '5.0.4',
    7575        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-shutdown-handler.php'
    7676    ),
    7777    'Version_Loader' => array(
    78         'version' => '5.0.3',
     78        'version' => '5.0.4',
    7979        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-version-loader.php'
    8080    ),
    8181    'Version_Selector' => array(
    82         'version' => '5.0.3',
     82        'version' => '5.0.4',
    8383        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-version-selector.php'
    8484    ),
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-autoloader-handler.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-autoloader-locator.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-autoloader.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-container.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-hook-manager.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-latest-autoloader-guard.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-manifest-reader.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-path-processor.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-php-autoloader.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-plugin-locator.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-plugins-handler.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-shutdown-handler.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-version-loader.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/jetpack-autoloader/class-version-selector.php

    r3256343 r3258012  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_3;
     8namespace Automattic\Jetpack\Autoloader\jpfa4ebaf22f08a8b822c80bc4efcf7610\al5_0_4;
    99
    1010 // phpcs:ignore
  • advanced-responsive-video-embedder/trunk/vendor/nextgenthemes/wp-settings/composer.json

    r3256343 r3258012  
    1414    ],
    1515    "require": {
    16         "php": "^7.4 || ^8.0"
     16        "php": ">=7.4"
    1717    }
    1818}
Note: See TracChangeset for help on using the changeset viewer.