Changeset 3414597
- Timestamp:
- 12/08/2025 05:41:41 PM (4 months ago)
- Location:
- posts-data-table
- Files:
-
- 2 added
- 14 edited
- 1 copied
-
tags/1.4.12 (copied) (copied from posts-data-table/trunk)
-
tags/1.4.12/assets/js/CREDITS.md (added)
-
tags/1.4.12/assets/js/posts-data-table-main.js (modified) (1 diff)
-
tags/1.4.12/assets/js/wp-dependencies.json (modified) (1 diff)
-
tags/1.4.12/changelog.txt (modified) (1 diff)
-
tags/1.4.12/dependencies/barn2/barn2-lib/src/Plugin/License/Plugin_License.php (modified) (4 diffs)
-
tags/1.4.12/posts-data-table.php (modified) (2 diffs)
-
tags/1.4.12/readme.txt (modified) (2 diffs)
-
tags/1.4.12/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/assets/js/CREDITS.md (added)
-
trunk/assets/js/posts-data-table-main.js (modified) (1 diff)
-
trunk/assets/js/wp-dependencies.json (modified) (1 diff)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/dependencies/barn2/barn2-lib/src/Plugin/License/Plugin_License.php (modified) (4 diffs)
-
trunk/posts-data-table.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
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 = 2 Release date 8 December 2025 3 4 * Dev: Updated internal libraries 5 * Dev: Tested up to WordPress 6.9 6 1 7 = 1.4.11 = 2 8 Release date 28 August 2025 3 9 4 10 * Dev: Updated internal libraries 11 * Dev: Added translation for popular languages 5 12 6 13 = 1.4.10 = -
posts-data-table/tags/1.4.12/dependencies/barn2/barn2-lib/src/Plugin/License/Plugin_License.php
r3352126 r3414597 147 147 $license_data['bonus_downloads'] = $response->bonus_downloads; 148 148 } 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 } 149 153 \do_action("barn2_license_activated_{$this->item_id}", $license_key, $url_to_activate); 150 154 } else { … … 264 268 $license_data['bonus_downloads'] = $response->bonus_downloads; 265 269 } 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 } 266 274 } else { 267 275 // Invalid license - $response->license will contain the reason for the invalid license - e.g. expired, inactive, site_inactive, etc. … … 413 421 return \false; 414 422 } 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 } 416 443 if ($has_moved && $this->is_active()) { 417 444 $this->set_site_inactive(); … … 496 523 private function get_default_data() 497 524 { 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' => []]; 499 526 } 500 527 private function get_license_data() -
posts-data-table/tags/1.4.12/posts-data-table.php
r3352126 r3414597 12 12 * Plugin URI: https://wordpress.org/plugins/posts-data-table/ 13 13 * Description: List your posts in an instantly searchable & sortable table. 14 * Version: 1.4.1 114 * Version: 1.4.12 15 15 * Author: Barn2 Plugins 16 16 * Author URI: https://barn2.com … … 33 33 } 34 34 35 const PLUGIN_VERSION = '1.4.1 1';35 const PLUGIN_VERSION = '1.4.12'; 36 36 const PLUGIN_FILE = __FILE__; 37 37 -
posts-data-table/tags/1.4.12/readme.txt
r3352126 r3414597 4 4 Tags: wordpress table plugin, data-table plugin, table plugin, table, wordpress table 5 5 Requires at least: 6.1 6 Tested up to: 6. 86 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 1.4.1 18 Stable tag: 1.4.12 9 9 License: GPL-3.0 10 10 License URI: https://www.gnu.org/licenses/gpl.html … … 169 169 == Changelog == 170 170 171 = 1.4.1 1=172 Release date 28 August2025171 = 1.4.12 = 172 Release date 8 December 2025 173 173 174 174 * Dev: Updated internal libraries 175 * Dev: Tested up to WordPress 6.9 175 176 176 177 See changelog.txt for more details. -
posts-data-table/tags/1.4.12/vendor/composer/installed.php
r3352126 r3414597 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' d385e8a47148cfc8f8d93d34937a86bde14dbf4b',6 'reference' => '97c2e92420d7288bd7447e48352443f0d1442c8a', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => ' d385e8a47148cfc8f8d93d34937a86bde14dbf4b',16 'reference' => '97c2e92420d7288bd7447e48352443f0d1442c8a', 17 17 'type' => 'wordpress-plugin', 18 18 '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 = 2 Release date 8 December 2025 3 4 * Dev: Updated internal libraries 5 * Dev: Tested up to WordPress 6.9 6 1 7 = 1.4.11 = 2 8 Release date 28 August 2025 3 9 4 10 * Dev: Updated internal libraries 11 * Dev: Added translation for popular languages 5 12 6 13 = 1.4.10 = -
posts-data-table/trunk/dependencies/barn2/barn2-lib/src/Plugin/License/Plugin_License.php
r3352126 r3414597 147 147 $license_data['bonus_downloads'] = $response->bonus_downloads; 148 148 } 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 } 149 153 \do_action("barn2_license_activated_{$this->item_id}", $license_key, $url_to_activate); 150 154 } else { … … 264 268 $license_data['bonus_downloads'] = $response->bonus_downloads; 265 269 } 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 } 266 274 } else { 267 275 // Invalid license - $response->license will contain the reason for the invalid license - e.g. expired, inactive, site_inactive, etc. … … 413 421 return \false; 414 422 } 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 } 416 443 if ($has_moved && $this->is_active()) { 417 444 $this->set_site_inactive(); … … 496 523 private function get_default_data() 497 524 { 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' => []]; 499 526 } 500 527 private function get_license_data() -
posts-data-table/trunk/posts-data-table.php
r3352126 r3414597 12 12 * Plugin URI: https://wordpress.org/plugins/posts-data-table/ 13 13 * Description: List your posts in an instantly searchable & sortable table. 14 * Version: 1.4.1 114 * Version: 1.4.12 15 15 * Author: Barn2 Plugins 16 16 * Author URI: https://barn2.com … … 33 33 } 34 34 35 const PLUGIN_VERSION = '1.4.1 1';35 const PLUGIN_VERSION = '1.4.12'; 36 36 const PLUGIN_FILE = __FILE__; 37 37 -
posts-data-table/trunk/readme.txt
r3352126 r3414597 4 4 Tags: wordpress table plugin, data-table plugin, table plugin, table, wordpress table 5 5 Requires at least: 6.1 6 Tested up to: 6. 86 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 1.4.1 18 Stable tag: 1.4.12 9 9 License: GPL-3.0 10 10 License URI: https://www.gnu.org/licenses/gpl.html … … 169 169 == Changelog == 170 170 171 = 1.4.1 1=172 Release date 28 August2025171 = 1.4.12 = 172 Release date 8 December 2025 173 173 174 174 * Dev: Updated internal libraries 175 * Dev: Tested up to WordPress 6.9 175 176 176 177 See changelog.txt for more details. -
posts-data-table/trunk/vendor/composer/installed.php
r3352126 r3414597 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' d385e8a47148cfc8f8d93d34937a86bde14dbf4b',6 'reference' => '97c2e92420d7288bd7447e48352443f0d1442c8a', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => ' d385e8a47148cfc8f8d93d34937a86bde14dbf4b',16 'reference' => '97c2e92420d7288bd7447e48352443f0d1442c8a', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.