Plugin Directory

Changeset 3384042


Ignore:
Timestamp:
10/24/2025 12:54:43 PM (5 months ago)
Author:
clonable
Message:

Release 2.7.3

Location:
clonable
Files:
123 added
12 edited

Legend:

Unmodified
Added
Removed
  • clonable/trunk/clonable-wp.php

    r3381323 r3384042  
    55Description: Official plugin for improving your clones made with Clonable.
    66Plugin URI: https://kb.clonable.net/en/introduction/getting-started/wordpress#de-clonable-plug-in-downloaden
    7 Version: 2.7.2
     7Version: 2.7.3
    88Author: Clonable BV
    99Author URI: https://www.clonable.net
     
    115115
    116116define('CLONABLE_NAME', 'Clonable');
    117 define('CLONABLE_VERSION', '2.7.2');
     117define('CLONABLE_VERSION', '2.7.3');
    118118
    119119if (defined('WP_CLI') && WP_CLI) {
  • clonable/trunk/objects/CurlBuilder.php

    r3378896 r3384042  
    2626        curl_setopt($this->curl, CURLOPT_HEADER, true);                   // get header response
    2727        curl_setopt($this->curl, CURLOPT_SSL_VERIFYPEER, false);          // don't care about SSL
    28         curl_setopt($this->curl, CURLOPT_RESOLVE, ["$site_url:443:" . ClonableConfig::SERVER_IP . ',[' . ClonableConfig::SERVER_IPV6 .']']);
     28
     29        if (self::canUseIpv6()) {
     30            curl_setopt($this->curl, CURLOPT_RESOLVE, ["$site_url:443:" . ClonableConfig::SERVER_IP . ',[' . ClonableConfig::SERVER_IPV6 . ']']);
     31        } else {
     32            curl_setopt($this->curl, CURLOPT_RESOLVE, ["$site_url:443:" . ClonableConfig::SERVER_IP]);
     33        }
    2934        return $this;
     35    }
     36
     37    private static function canUseIpv6(): bool
     38    {
     39        $version = curl_version();
     40        if ($version) { // Version succeeded
     41            if ($version['features'] & CURL_VERSION_IPV6) { // Version supports IPv6
     42                if (version_compare($version['version'], '7.34.0', '>=')) { // Version has happy eyeballs
     43                    return true;
     44                }
     45            }
     46        }
     47
     48        return false;
    3049    }
    3150
  • clonable/trunk/readme-da_DK.txt

    r3381323 r3384042  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.7.2
     7Stable tag: 2.7.3
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.7.3
     35Improved support for IPv6 on hosts with Curl version < 7.34.0 (dec 2013).
     36Fixed warning about a script being enqueued too early.
     37
    3438v2.7.2
    3539Improved form handling for subfolders.
  • clonable/trunk/readme-de_DE.txt

    r3381323 r3384042  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.7.2
     7Stable tag: 2.7.3
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.7.3
     35Improved support for IPv6 on hosts with Curl version < 7.34.0 (dec 2013).
     36Fixed warning about a script being enqueued too early.
     37
    3438v2.7.2
    3539Improved form handling for subfolders.
  • clonable/trunk/readme-es_ES.txt

    r3381323 r3384042  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.7.2
     7Stable tag: 2.7.3
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.7.3
     35Improved support for IPv6 on hosts with Curl version < 7.34.0 (dec 2013).
     36Fixed warning about a script being enqueued too early.
     37
    3438v2.7.2
    3539Improved form handling for subfolders.
  • clonable/trunk/readme-fr_FR.txt

    r3381323 r3384042  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.7.2
     7Stable tag: 2.7.3
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.7.3
     35Improved support for IPv6 on hosts with Curl version < 7.34.0 (dec 2013).
     36Fixed warning about a script being enqueued too early.
     37
    3438v2.7.2
    3539Improved form handling for subfolders.
  • clonable/trunk/readme-it_IT.txt

    r3381323 r3384042  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.7.2
     7Stable tag: 2.7.3
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.7.3
     35Improved support for IPv6 on hosts with Curl version < 7.34.0 (dec 2013).
     36Fixed warning about a script being enqueued too early.
     37
    3438v2.7.2
    3539Improved form handling for subfolders.
  • clonable/trunk/readme-nb_NO.txt

    r3381323 r3384042  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.7.2
     7Stable tag: 2.7.3
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.7.3
     35Improved support for IPv6 on hosts with Curl version < 7.34.0 (dec 2013).
     36Fixed warning about a script being enqueued too early.
     37
    3438v2.7.2
    3539Improved form handling for subfolders.
  • clonable/trunk/readme-nl_NL.txt

    r3381323 r3384042  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.7.2
     7Stable tag: 2.7.3
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.7.3
     35Improved support for IPv6 on hosts with Curl version < 7.34.0 (dec 2013).
     36Fixed warning about a script being enqueued too early.
     37
    3438v2.7.2
    3539Improved form handling for subfolders.
  • clonable/trunk/readme-sv_SE.txt

    r3381323 r3384042  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.7.2
     7Stable tag: 2.7.3
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.7.3
     35Improved support for IPv6 on hosts with Curl version < 7.34.0 (dec 2013).
     36Fixed warning about a script being enqueued too early.
     37
    3438v2.7.2
    3539Improved form handling for subfolders.
  • clonable/trunk/readme.txt

    r3381323 r3384042  
    55Tested up to: 6.8.3
    66Requires PHP: 7.2
    7 Stable tag: 2.7.2
     7Stable tag: 2.7.3
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.7.3
     35Improved support for IPv6 on hosts with Curl version < 7.34.0 (dec 2013).
     36Fixed warning about a script being enqueued too early.
     37
    3438v2.7.2
    3539Improved form handling for subfolders.
  • clonable/trunk/services/SubfolderService.php

    r3381323 r3384042  
    2929
    3030        $this->circuit_breaker = new CircuitBreaker();
    31         wp_enqueue_script( 'clonable-subfolder-ajax-middleware', '/clonable-cgi/js/sfm', array('jquery'));
     31        add_action('wp_enqueue_scripts', [$this, 'enqueue_sfm_script']);
    3232        add_action('plugins_loaded', array($this, 'subfolder_request_intercept'), 2);
     33    }
     34
     35    public function enqueue_sfm_script()
     36    {
     37        wp_enqueue_script('clonable-subfolder-ajax-middleware', '/clonable-cgi/js/sfm', array('jquery'));
    3338    }
    3439
Note: See TracChangeset for help on using the changeset viewer.