Plugin Directory

Changeset 3414597


Ignore:
Timestamp:
12/08/2025 05:41:41 PM (4 months ago)
Author:
amirition
Message:

Update to version 1.4.12 from GitHub

Location:
posts-data-table
Files:
2 added
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • posts-data-table/tags/1.4.12/assets/js/posts-data-table-main.js

    r3352126 r3414597  
    1 (()=>{var t;(t=jQuery)(document).ready((function(){let a=t(".posts-data-table");const e=t("#wpadminbar"),n=["categories","tags","author"];a.each((function(){let a=t(this),s={responsive:!0,processing:!0,aLengthMenu:JSON.parse(configOptions.lengthMenu),iDisplayLength:configOptions.displayLength,fnDrawCallback:function(a){displayLength=-1===a._iDisplayLength?a.fnRecordsTotal():a._iDisplayLength,a.fnRecordsDisplay()<=displayLength?t(".dataTables_paginate").hide():t(".dataTables_paginate").show()}};"undefined"!=typeof posts_data_table&&posts_data_table.langurl&&(s.language={url:posts_data_table.langurl});let l=a.DataTable(s);a.on("page.dt",(function(){if(!1!==t(this).data("scroll-offset")){let a=t(this).parent().offset().top-t(this).data("scroll-offset");if(e.length){a-=e.outerHeight()||32}t("html,body").animate({scrollTop:a},300)}})),a.data("click-filter")&&a.on("click","a",(function(){let a=t(this),e=l.cell(a.closest("td").get(0)).index().column,s=l.column(e).header(),i=t(s).data("name");return-1===n.indexOf(i)||(l.search(a.text()).draw(),!1)})),a.addClass("loading").css("visibility","visible")}))}))})();
     1(()=>{var t;(t=jQuery)(document).ready(function(){let a=t(".posts-data-table");const e=t("#wpadminbar"),n=["categories","tags","author"];a.each(function(){let a=t(this),s={responsive:!0,processing:!0,aLengthMenu:JSON.parse(configOptions.lengthMenu),iDisplayLength:configOptions.displayLength,fnDrawCallback:function(a){displayLength=-1===a._iDisplayLength?a.fnRecordsTotal():a._iDisplayLength,a.fnRecordsDisplay()<=displayLength?t(".dataTables_paginate").hide():t(".dataTables_paginate").show()}};"undefined"!=typeof posts_data_table&&posts_data_table.langurl&&(s.language={url:posts_data_table.langurl});let l=a.DataTable(s);a.on("page.dt",function(){if(!1!==t(this).data("scroll-offset")){let a=t(this).parent().offset().top-t(this).data("scroll-offset");if(e.length){a-=e.outerHeight()||32}t("html,body").animate({scrollTop:a},300)}}),a.data("click-filter")&&a.on("click","a",function(){let a=t(this),e=l.cell(a.closest("td").get(0)).index().column,s=l.column(e).header(),i=t(s).data("name");return-1===n.indexOf(i)||(l.search(a.text()).draw(),!1)}),a.addClass("loading").css("visibility","visible")})})})();
  • posts-data-table/tags/1.4.12/assets/js/wp-dependencies.json

    r3352126 r3414597  
    1 {"posts-data-table-main.js":{"dependencies":[],"version":"126a9cc787d1efa9daab"}}
     1{"posts-data-table-main.js":{"dependencies":[],"version":"2dbbcca39c0fd316555e"}}
  • posts-data-table/tags/1.4.12/changelog.txt

    r3352126 r3414597  
     1= 1.4.12 =
     2Release date 8 December 2025
     3
     4* Dev: Updated internal libraries
     5* Dev: Tested up to WordPress 6.9
     6
    17= 1.4.11 =
    28Release date 28 August 2025
    39
    410* Dev: Updated internal libraries
     11* Dev: Added translation for popular languages
    512
    613= 1.4.10 =
  • posts-data-table/tags/1.4.12/dependencies/barn2/barn2-lib/src/Plugin/License/Plugin_License.php

    r3352126 r3414597  
    147147                    $license_data['bonus_downloads'] = $response->bonus_downloads;
    148148                }
     149                // Store allowed domains if provided by API (for multidomain support)
     150                if (isset($response->allowed_domains) && \is_array($response->allowed_domains)) {
     151                    $license_data['allowed_domains'] = $response->allowed_domains;
     152                }
    149153                \do_action("barn2_license_activated_{$this->item_id}", $license_key, $url_to_activate);
    150154            } else {
     
    264268                    $license_data['bonus_downloads'] = $response->bonus_downloads;
    265269                }
     270                // Store allowed domains if provided by API
     271                if (isset($response->allowed_domains) && \is_array($response->allowed_domains)) {
     272                    $license_data['allowed_domains'] = $response->allowed_domains;
     273                }
    266274            } else {
    267275                // Invalid license - $response->license will contain the reason for the invalid license - e.g. expired, inactive, site_inactive, etc.
     
    413421            return \false;
    414422        }
    415         $has_moved = $active_url !== $this->get_home_url();
     423        $current_url = $this->get_home_url();
     424        $has_moved = $active_url !== $current_url;
     425        // If domain appears to have changed, check if current domain is in allowed domains list
     426        if ($has_moved) {
     427            $license_data = $this->get_license_data();
     428            // Check if API provided a list of allowed domains (for multidomain setups)
     429            if (!empty($license_data['allowed_domains']) && \is_array($license_data['allowed_domains'])) {
     430                // Clean current URL for comparison
     431                $cleaned_current = $this->clean_license_url(\get_option('home'));
     432                // Check if current domain is in the allowed list
     433                foreach ($license_data['allowed_domains'] as $allowed_domain) {
     434                    $cleaned_allowed = $this->clean_license_url($allowed_domain);
     435                    if ($cleaned_current === $cleaned_allowed) {
     436                        // Current domain is in allowed list, not actually moved
     437                        $has_moved = \false;
     438                        break;
     439                    }
     440                }
     441            }
     442        }
    416443        if ($has_moved && $this->is_active()) {
    417444            $this->set_site_inactive();
     
    496523    private function get_default_data()
    497524    {
    498         return ['license' => '', 'status' => 'invalid', 'url' => '', 'error_code' => '', 'error_message' => '', 'license_info' => []];
     525        return ['license' => '', 'status' => 'invalid', 'url' => '', 'error_code' => '', 'error_message' => '', 'license_info' => [], 'allowed_domains' => []];
    499526    }
    500527    private function get_license_data()
  • posts-data-table/tags/1.4.12/posts-data-table.php

    r3352126 r3414597  
    1212 * Plugin URI:      https://wordpress.org/plugins/posts-data-table/
    1313 * Description:     List your posts in an instantly searchable & sortable table.
    14  * Version:         1.4.11
     14 * Version:         1.4.12
    1515 * Author:          Barn2 Plugins
    1616 * Author URI:      https://barn2.com
     
    3333}
    3434
    35 const PLUGIN_VERSION = '1.4.11';
     35const PLUGIN_VERSION = '1.4.12';
    3636const PLUGIN_FILE    = __FILE__;
    3737
  • posts-data-table/tags/1.4.12/readme.txt

    r3352126 r3414597  
    44Tags: wordpress table plugin, data-table plugin, table plugin, table, wordpress table
    55Requires at least: 6.1
    6 Tested up to: 6.8
     6Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 1.4.11
     8Stable tag: 1.4.12
    99License: GPL-3.0
    1010License URI: https://www.gnu.org/licenses/gpl.html
     
    169169== Changelog ==
    170170
    171 = 1.4.11 =
    172 Release date 28 August 2025
     171= 1.4.12 =
     172Release date 8 December 2025
    173173
    174174* Dev: Updated internal libraries
     175* Dev: Tested up to WordPress 6.9
    175176
    176177See changelog.txt for more details.
  • posts-data-table/tags/1.4.12/vendor/composer/installed.php

    r3352126 r3414597  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'd385e8a47148cfc8f8d93d34937a86bde14dbf4b',
     6        'reference' => '97c2e92420d7288bd7447e48352443f0d1442c8a',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-master',
    1515            'version' => 'dev-master',
    16             'reference' => 'd385e8a47148cfc8f8d93d34937a86bde14dbf4b',
     16            'reference' => '97c2e92420d7288bd7447e48352443f0d1442c8a',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • posts-data-table/trunk/assets/js/posts-data-table-main.js

    r3352126 r3414597  
    1 (()=>{var t;(t=jQuery)(document).ready((function(){let a=t(".posts-data-table");const e=t("#wpadminbar"),n=["categories","tags","author"];a.each((function(){let a=t(this),s={responsive:!0,processing:!0,aLengthMenu:JSON.parse(configOptions.lengthMenu),iDisplayLength:configOptions.displayLength,fnDrawCallback:function(a){displayLength=-1===a._iDisplayLength?a.fnRecordsTotal():a._iDisplayLength,a.fnRecordsDisplay()<=displayLength?t(".dataTables_paginate").hide():t(".dataTables_paginate").show()}};"undefined"!=typeof posts_data_table&&posts_data_table.langurl&&(s.language={url:posts_data_table.langurl});let l=a.DataTable(s);a.on("page.dt",(function(){if(!1!==t(this).data("scroll-offset")){let a=t(this).parent().offset().top-t(this).data("scroll-offset");if(e.length){a-=e.outerHeight()||32}t("html,body").animate({scrollTop:a},300)}})),a.data("click-filter")&&a.on("click","a",(function(){let a=t(this),e=l.cell(a.closest("td").get(0)).index().column,s=l.column(e).header(),i=t(s).data("name");return-1===n.indexOf(i)||(l.search(a.text()).draw(),!1)})),a.addClass("loading").css("visibility","visible")}))}))})();
     1(()=>{var t;(t=jQuery)(document).ready(function(){let a=t(".posts-data-table");const e=t("#wpadminbar"),n=["categories","tags","author"];a.each(function(){let a=t(this),s={responsive:!0,processing:!0,aLengthMenu:JSON.parse(configOptions.lengthMenu),iDisplayLength:configOptions.displayLength,fnDrawCallback:function(a){displayLength=-1===a._iDisplayLength?a.fnRecordsTotal():a._iDisplayLength,a.fnRecordsDisplay()<=displayLength?t(".dataTables_paginate").hide():t(".dataTables_paginate").show()}};"undefined"!=typeof posts_data_table&&posts_data_table.langurl&&(s.language={url:posts_data_table.langurl});let l=a.DataTable(s);a.on("page.dt",function(){if(!1!==t(this).data("scroll-offset")){let a=t(this).parent().offset().top-t(this).data("scroll-offset");if(e.length){a-=e.outerHeight()||32}t("html,body").animate({scrollTop:a},300)}}),a.data("click-filter")&&a.on("click","a",function(){let a=t(this),e=l.cell(a.closest("td").get(0)).index().column,s=l.column(e).header(),i=t(s).data("name");return-1===n.indexOf(i)||(l.search(a.text()).draw(),!1)}),a.addClass("loading").css("visibility","visible")})})})();
  • posts-data-table/trunk/assets/js/wp-dependencies.json

    r3352126 r3414597  
    1 {"posts-data-table-main.js":{"dependencies":[],"version":"126a9cc787d1efa9daab"}}
     1{"posts-data-table-main.js":{"dependencies":[],"version":"2dbbcca39c0fd316555e"}}
  • posts-data-table/trunk/changelog.txt

    r3352126 r3414597  
     1= 1.4.12 =
     2Release date 8 December 2025
     3
     4* Dev: Updated internal libraries
     5* Dev: Tested up to WordPress 6.9
     6
    17= 1.4.11 =
    28Release date 28 August 2025
    39
    410* Dev: Updated internal libraries
     11* Dev: Added translation for popular languages
    512
    613= 1.4.10 =
  • posts-data-table/trunk/dependencies/barn2/barn2-lib/src/Plugin/License/Plugin_License.php

    r3352126 r3414597  
    147147                    $license_data['bonus_downloads'] = $response->bonus_downloads;
    148148                }
     149                // Store allowed domains if provided by API (for multidomain support)
     150                if (isset($response->allowed_domains) && \is_array($response->allowed_domains)) {
     151                    $license_data['allowed_domains'] = $response->allowed_domains;
     152                }
    149153                \do_action("barn2_license_activated_{$this->item_id}", $license_key, $url_to_activate);
    150154            } else {
     
    264268                    $license_data['bonus_downloads'] = $response->bonus_downloads;
    265269                }
     270                // Store allowed domains if provided by API
     271                if (isset($response->allowed_domains) && \is_array($response->allowed_domains)) {
     272                    $license_data['allowed_domains'] = $response->allowed_domains;
     273                }
    266274            } else {
    267275                // Invalid license - $response->license will contain the reason for the invalid license - e.g. expired, inactive, site_inactive, etc.
     
    413421            return \false;
    414422        }
    415         $has_moved = $active_url !== $this->get_home_url();
     423        $current_url = $this->get_home_url();
     424        $has_moved = $active_url !== $current_url;
     425        // If domain appears to have changed, check if current domain is in allowed domains list
     426        if ($has_moved) {
     427            $license_data = $this->get_license_data();
     428            // Check if API provided a list of allowed domains (for multidomain setups)
     429            if (!empty($license_data['allowed_domains']) && \is_array($license_data['allowed_domains'])) {
     430                // Clean current URL for comparison
     431                $cleaned_current = $this->clean_license_url(\get_option('home'));
     432                // Check if current domain is in the allowed list
     433                foreach ($license_data['allowed_domains'] as $allowed_domain) {
     434                    $cleaned_allowed = $this->clean_license_url($allowed_domain);
     435                    if ($cleaned_current === $cleaned_allowed) {
     436                        // Current domain is in allowed list, not actually moved
     437                        $has_moved = \false;
     438                        break;
     439                    }
     440                }
     441            }
     442        }
    416443        if ($has_moved && $this->is_active()) {
    417444            $this->set_site_inactive();
     
    496523    private function get_default_data()
    497524    {
    498         return ['license' => '', 'status' => 'invalid', 'url' => '', 'error_code' => '', 'error_message' => '', 'license_info' => []];
     525        return ['license' => '', 'status' => 'invalid', 'url' => '', 'error_code' => '', 'error_message' => '', 'license_info' => [], 'allowed_domains' => []];
    499526    }
    500527    private function get_license_data()
  • posts-data-table/trunk/posts-data-table.php

    r3352126 r3414597  
    1212 * Plugin URI:      https://wordpress.org/plugins/posts-data-table/
    1313 * Description:     List your posts in an instantly searchable & sortable table.
    14  * Version:         1.4.11
     14 * Version:         1.4.12
    1515 * Author:          Barn2 Plugins
    1616 * Author URI:      https://barn2.com
     
    3333}
    3434
    35 const PLUGIN_VERSION = '1.4.11';
     35const PLUGIN_VERSION = '1.4.12';
    3636const PLUGIN_FILE    = __FILE__;
    3737
  • posts-data-table/trunk/readme.txt

    r3352126 r3414597  
    44Tags: wordpress table plugin, data-table plugin, table plugin, table, wordpress table
    55Requires at least: 6.1
    6 Tested up to: 6.8
     6Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 1.4.11
     8Stable tag: 1.4.12
    99License: GPL-3.0
    1010License URI: https://www.gnu.org/licenses/gpl.html
     
    169169== Changelog ==
    170170
    171 = 1.4.11 =
    172 Release date 28 August 2025
     171= 1.4.12 =
     172Release date 8 December 2025
    173173
    174174* Dev: Updated internal libraries
     175* Dev: Tested up to WordPress 6.9
    175176
    176177See changelog.txt for more details.
  • posts-data-table/trunk/vendor/composer/installed.php

    r3352126 r3414597  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'd385e8a47148cfc8f8d93d34937a86bde14dbf4b',
     6        'reference' => '97c2e92420d7288bd7447e48352443f0d1442c8a',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-master',
    1515            'version' => 'dev-master',
    16             'reference' => 'd385e8a47148cfc8f8d93d34937a86bde14dbf4b',
     16            'reference' => '97c2e92420d7288bd7447e48352443f0d1442c8a',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.