Plugin Directory

Changeset 2387285


Ignore:
Timestamp:
09/23/2020 08:04:47 PM (6 years ago)
Author:
marcospassos
Message:

Update to version 1.0.1 from GitHub

Location:
croct
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • croct/tags/1.0.1/readme.txt

    r2384748 r2387285  
    4141* Visitor interest tracking on a per-post basis.
    4242
    43 ## HOW TO SET-UP AND ALLPY PERSONALIZATION?
     43## HOW TO SET-UP AND APPLY PERSONALIZATION?
    4444
    4545It only takes a few clicks to install the plugin and unlock the power of personalization. No need to insert code snippets or play with the styling of the plugin.
     
    7373This plugin collects information about the visitor activities and sends to Croct to help you better understand your audience and personalize the content for them.
    7474
    75 By installing and activating the Croct for WordPress plugin you agree to our
    76 [Terms of Service](https://croct.com/legal/customer/terms-of-service) and
    77 [Privacy Policy](https://croct.com/legal/customer/privacy-policy).
     75By installing and activating the Croct for WordPress plugin you agree to our [Terms of Service](https://croct.com/legal/customer/terms-of-service) and [Privacy Policy](https://croct.com/legal/customer/privacy-policy).
    7876
    7977== Installation ==
  • croct/tags/1.0.1/src/DependencyQueue.php

    r2384748 r2387285  
    1212    public function enqueue(array $dependencies)
    1313    {
    14         \usort($dependencies, static function (Dependency $left, Dependency $right) {
    15             if ($left instanceof ExternalDependency) {
    16                 return $right instanceof ExternalDependency ? 0 : -1;
     14        $others = [];
     15        foreach ($dependencies as $dependency) {
     16            if ($dependency instanceof ExternalDependency) {
     17                $this->enqueueDependency($dependency);
     18
     19                continue;
    1720            }
    1821
    19             return $right instanceof ExternalDependency ? 1 : 0;
    20         });
     22            $others[] = $dependency;
     23        }
    2124
    22         foreach ($dependencies as $dependency) {
     25        foreach ($others as $dependency) {
    2326            $this->enqueueDependency($dependency);
    2427        }
  • croct/tags/1.0.1/src/Plugin.php

    r2384748 r2387285  
    1313final class Plugin
    1414{
    15     const VERSION = '1.0.0';
     15    const VERSION = '1.0.1';
    1616
    1717    const OPTIONS_GROUP = 'croct';
     
    126126        $dependencies = [
    127127            new PlugScript(),
     128            new WpCroctScript($this->baseUrl),
    128129            new BootstrapScript($appId, $options->isDebugModeEnabled()),
    129             new WpCroctScript($this->baseUrl),
    130130        ];
    131131
  • croct/trunk/readme.txt

    r2384748 r2387285  
    4141* Visitor interest tracking on a per-post basis.
    4242
    43 ## HOW TO SET-UP AND ALLPY PERSONALIZATION?
     43## HOW TO SET-UP AND APPLY PERSONALIZATION?
    4444
    4545It only takes a few clicks to install the plugin and unlock the power of personalization. No need to insert code snippets or play with the styling of the plugin.
     
    7373This plugin collects information about the visitor activities and sends to Croct to help you better understand your audience and personalize the content for them.
    7474
    75 By installing and activating the Croct for WordPress plugin you agree to our
    76 [Terms of Service](https://croct.com/legal/customer/terms-of-service) and
    77 [Privacy Policy](https://croct.com/legal/customer/privacy-policy).
     75By installing and activating the Croct for WordPress plugin you agree to our [Terms of Service](https://croct.com/legal/customer/terms-of-service) and [Privacy Policy](https://croct.com/legal/customer/privacy-policy).
    7876
    7977== Installation ==
  • croct/trunk/src/DependencyQueue.php

    r2384748 r2387285  
    1212    public function enqueue(array $dependencies)
    1313    {
    14         \usort($dependencies, static function (Dependency $left, Dependency $right) {
    15             if ($left instanceof ExternalDependency) {
    16                 return $right instanceof ExternalDependency ? 0 : -1;
     14        $others = [];
     15        foreach ($dependencies as $dependency) {
     16            if ($dependency instanceof ExternalDependency) {
     17                $this->enqueueDependency($dependency);
     18
     19                continue;
    1720            }
    1821
    19             return $right instanceof ExternalDependency ? 1 : 0;
    20         });
     22            $others[] = $dependency;
     23        }
    2124
    22         foreach ($dependencies as $dependency) {
     25        foreach ($others as $dependency) {
    2326            $this->enqueueDependency($dependency);
    2427        }
  • croct/trunk/src/Plugin.php

    r2384748 r2387285  
    1313final class Plugin
    1414{
    15     const VERSION = '1.0.0';
     15    const VERSION = '1.0.1';
    1616
    1717    const OPTIONS_GROUP = 'croct';
     
    126126        $dependencies = [
    127127            new PlugScript(),
     128            new WpCroctScript($this->baseUrl),
    128129            new BootstrapScript($appId, $options->isDebugModeEnabled()),
    129             new WpCroctScript($this->baseUrl),
    130130        ];
    131131
Note: See TracChangeset for help on using the changeset viewer.