Changeset 3451502
- Timestamp:
- 02/01/2026 05:00:19 PM (8 weeks ago)
- Location:
- advanced-custom-fields-table-field/trunk
- Files:
-
- 5 edited
-
acf-table.php (modified) (1 diff)
-
changelog.txt (modified) (1 diff)
-
class-jh-acf-field-table.php (modified) (1 diff)
-
js/init.js (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-custom-fields-table-field/trunk/acf-table.php
r3414476 r3451502 4 4 Plugin URI: https://www.acf-table-field.com 5 5 Description: This free Add-on adds a table field type for the plugins Advanced Custom Fields and Secure Custom Fields. 6 Version: 1.3.3 36 Version: 1.3.34 7 7 Author: Johann Heyne 8 8 Author URI: http://www.johannheyne.de -
advanced-custom-fields-table-field/trunk/changelog.txt
r3414476 r3451502 1 1 == Changelog == 2 3 = 1.3.34 = 4 * Allows the target="_blank" attribute on links 5 * Adds a filter that ensures links using target="_blank" are automatically given rel="noopener" 2 6 3 7 = 1.3.33 = -
advanced-custom-fields-table-field/trunk/class-jh-acf-field-table.php
r3414476 r3451502 40 40 */ 41 41 $this->settings = array( 42 'version' => '1.3.3 3',42 'version' => '1.3.34', 43 43 'dir_url' => plugins_url( '', __FILE__ ) . '/', 44 44 ); -
advanced-custom-fields-table-field/trunk/js/init.js
r3414476 r3451502 7 7 var t = this; 8 8 9 t.version = '1.3.3 3';9 t.version = '1.3.34'; 10 10 11 11 t.param = {}; … … 1604 1604 USE_PROFILES: { 1605 1605 html: true 1606 } 1606 }, 1607 ADD_ATTR: ['target'] 1607 1608 }; 1608 1609 … … 1610 1611 1611 1612 string = t.DOMPurify.sanitize( string, options ); 1613 string = t.addNoopenerToHtmlString( string ); 1612 1614 1613 1615 return string; 1614 1616 }; 1617 1618 t.addNoopenerToHtmlString = function (html) { 1619 const parser = new DOMParser(); 1620 const doc = parser.parseFromString(html, "text/html"); 1621 1622 doc.querySelectorAll('a[target="_blank"]').forEach(link => { 1623 const rel = link.getAttribute('rel'); 1624 1625 if (!rel) { 1626 link.setAttribute('rel', 'noopener'); 1627 } else if (!rel.split(/\s+/).includes('noopener')) { 1628 link.setAttribute('rel', rel + ' noopener'); 1629 } 1630 }); 1631 1632 return doc.body.innerHTML; 1633 } 1615 1634 1616 1635 t.DOMPurify = (function () { -
advanced-custom-fields-table-field/trunk/readme.txt
r3414484 r3451502 4 4 Requires at least: 5.3 5 5 Tested up to: 6.9 6 Stable tag: 1.3.3 36 Stable tag: 1.3.34 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 489 489 // DOMPurify Options, @see: https://github.com/cure53/DOMPurify?tab=readme-ov-file#can-i-configure-dompurify 490 490 491 options.ADD_ATTR = ['target']; // For instance, the target attribute can be permitted492 493 491 return options; 494 492 }); … … 552 550 == Changelog == 553 551 552 = 1.3.34 = 553 * Allows the target="_blank" attribute on links 554 * Adds a filter that ensures links using target="_blank" are automatically given rel="noopener" 555 554 556 = 1.3.33 = 555 557 * Adds hook registering event "tableFieldRegisterHooks"
Note: See TracChangeset
for help on using the changeset viewer.