Plugin Directory

Changeset 2962918

Timestamp:
09/05/2023 08:46:40 AM (11 months ago)
Author:
khorshidlab
Message:

Plugin Version 0.9.9

Location:
arvancloud-cdn
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • arvancloud-cdn/tags/0.9.9/README.txt

    r2945859 r2962918  
    55Tested up to: 6.1
    66Requires PHP: 7.2
    7 Stable tag: 0.9.8
     7Stable tag: 0.9.
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5656
    5757== Changelog ==
     58
     59
     60
    5861= 0.9.8 - 2023-08-01 =
    5962* Revert some changes
  • arvancloud-cdn/tags/0.9.9/admin/inc/CDN/class-domain-info.php

    r2943546 r2962918  
    3838        $cdn_service_status = false;
    3939
    40         $param = array(
    41             'search'    => $domain,
    42             'per_page'  => 31528422,
    43             'page'      => 1,
    44         );
    45         $response = Request_Arvan::get('domains?'. http_build_query($param), false);
     40        $response = Request_Arvan::get('domains/'. Helper::get_site_domain(), false);
    4641
    4742        if ( is_wp_error($response) || !isset($response['body'])) {
     
    5045        } else {
    5146            $response = json_decode($response['body'], true)['data'];
    52             foreach ($response as $service) {
    53                 if ($domain === $service['domain']) {
    54                     $dns_service_status = $service['services']['dns'];
    55                     $cdn_service_status = $service['dns_cloud'];
    56                     break;
    57                 }
     47            if ($domain === $response['domain']) {
     48                $dns_service_status = $response['status'];
     49                $cdn_service_status = $response['dns_cloud'];
    5850            }
    5951
  • arvancloud-cdn/tags/0.9.9/wp-arvancloud-cdn.php

    r2945859 r2962918  
    1111 * Plugin URI:        https://www.arvancloud.ir/fa/products/cdn
    1212 * Description:       ArvanCloud CDN service caches your website content. Using this plugin, you will be able to purge and update the cached version, either manually or automatically, so that your users visit the latest version of your website at any time.
    13  * Version:           0.9.8
     13 * Version:           0.9.
    1414 * Requires PHP:      7.2
    1515 * Author:            Khorshid, ArvanCloud
     
    2727
    2828
    29 define( 'ACCDN_VERSION', '0.9.8' );
     29define( 'ACCDN_VERSION', '0.9.' );
    3030define( 'ACCDN_NAME', __( 'ArvanCloud CDN', 'arvancloud-cdn' ) );
    3131define( 'ACCDN_SLUG', 'arvancloud-cdn');
     
    3838 * Currently plugin version.
    3939 */
    40 define( 'WP_ARVANCLOUD_CDN_VERSION', '0.9.8' );
     40define( 'WP_ARVANCLOUD_CDN_VERSION', '0.9.' );
    4141
    4242/**
  • arvancloud-cdn/trunk/README.txt

    r2945859 r2962918  
    55Tested up to: 6.1
    66Requires PHP: 7.2
    7 Stable tag: 0.9.8
     7Stable tag: 0.9.
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5656
    5757== Changelog ==
     58
     59
     60
    5861= 0.9.8 - 2023-08-01 =
    5962* Revert some changes
  • arvancloud-cdn/trunk/admin/inc/CDN/class-domain-info.php

    r2943546 r2962918  
    3838        $cdn_service_status = false;
    3939
    40         $param = array(
    41             'search'    => $domain,
    42             'per_page'  => 31528422,
    43             'page'      => 1,
    44         );
    45         $response = Request_Arvan::get('domains?'. http_build_query($param), false);
     40        $response = Request_Arvan::get('domains/'. Helper::get_site_domain(), false);
    4641
    4742        if ( is_wp_error($response) || !isset($response['body'])) {
     
    5045        } else {
    5146            $response = json_decode($response['body'], true)['data'];
    52             foreach ($response as $service) {
    53                 if ($domain === $service['domain']) {
    54                     $dns_service_status = $service['services']['dns'];
    55                     $cdn_service_status = $service['dns_cloud'];
    56                     break;
    57                 }
     47            if ($domain === $response['domain']) {
     48                $dns_service_status = $response['status'];
     49                $cdn_service_status = $response['dns_cloud'];
    5850            }
    5951
  • arvancloud-cdn/trunk/wp-arvancloud-cdn.php

    r2945859 r2962918  
    1111 * Plugin URI:        https://www.arvancloud.ir/fa/products/cdn
    1212 * Description:       ArvanCloud CDN service caches your website content. Using this plugin, you will be able to purge and update the cached version, either manually or automatically, so that your users visit the latest version of your website at any time.
    13  * Version:           0.9.8
     13 * Version:           0.9.
    1414 * Requires PHP:      7.2
    1515 * Author:            Khorshid, ArvanCloud
     
    2727
    2828
    29 define( 'ACCDN_VERSION', '0.9.8' );
     29define( 'ACCDN_VERSION', '0.9.' );
    3030define( 'ACCDN_NAME', __( 'ArvanCloud CDN', 'arvancloud-cdn' ) );
    3131define( 'ACCDN_SLUG', 'arvancloud-cdn');
     
    3838 * Currently plugin version.
    3939 */
    40 define( 'WP_ARVANCLOUD_CDN_VERSION', '0.9.8' );
     40define( 'WP_ARVANCLOUD_CDN_VERSION', '0.9.' );
    4141
    4242/**
Note: See TracChangeset for help on using the changeset viewer.