- Timestamp:
- 09/06/2022 03:32:22 PM (3 years ago)
- Location:
- anrghg
- Files:
-
- 1 deleted
- 10 edited
- 1 copied
-
tags/1.6.16 (deleted)
-
tags/1.6.17 (copied) (copied from anrghg/trunk)
-
tags/1.6.17/anrghg.php (modified) (2 diffs)
-
tags/1.6.17/includes/modular.php (modified) (8 diffs)
-
tags/1.6.17/package.json (modified) (1 diff)
-
tags/1.6.17/readme.txt (modified) (2 diffs)
-
tags/1.6.17/svn-revs.txt (modified) (1 diff)
-
trunk/anrghg.php (modified) (2 diffs)
-
trunk/includes/modular.php (modified) (8 diffs)
-
trunk/package.json (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/svn-revs.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
anrghg/tags/1.6.17/anrghg.php
r2780342 r2780783 14 14 * Tested PHP up to: 8.0 15 15 * CAUTION: The following field is parsed in the `stable tag` folder for upgrade configuration: 16 * Version: 1.6.1 616 * Version: 1.6.17 17 17 * Author: ANRGHG 18 18 * Author URI: https://anrghg.sunsite.fr … … 101 101 * @var string C_S_ANRGHG_VER Plugin version constant. 102 102 */ 103 define( 'C_S_ANRGHG_VER', '1.6.1 6' );103 define( 'C_S_ANRGHG_VER', '1.6.17' ); 104 104 105 105 /** -
anrghg/tags/1.6.17/includes/modular.php
r2780342 r2780783 1313 1313 1314 1314 /** 1315 * URL-decodes while maintaining plus signs. 1316 * 1317 * @since 1.6.17 1318 * `urldecode()` converts a plus sign to a space, despite 1319 * `+` is allowed in URLs but some apps turn it to `%20`. 1320 * @link https://support.google.com/webmasters/thread/62860395/does-having-plus-signs-vs-hyphens-to-separate-words-in-your-url-slug-impact-your-seo?hl=en 1321 * To match user expectations, `+` is decoded beforehand. 1322 * @param string $p_s_string String to decode. 1323 * @return string 1324 */ 1325 function anrghg_url_decode( $p_s_string ) { 1326 $p_s_string = str_replace( '%2B', '+', $p_s_string ); 1327 $p_s_string = urldecode( $p_s_string ); 1328 return $p_s_string; 1329 } 1330 1331 /** 1315 1332 * Derives simplified fragment identifiers. 1316 1333 * … … 1371 1388 1372 1389 /** 1390 * Decodes HTML entities, reencodes &, <, >. 1391 * 1392 * @since 1.6.16 1393 */ 1394 $p_s_text = html_entity_decode( $p_s_text ); 1395 $p_s_text = preg_replace( '/&/', '&', $p_s_text ); 1396 $p_s_text = preg_replace( array( '/</', '/>/' ), array( '<', '>' ), $p_s_text ); 1397 1398 /** 1399 * URL-decodes to avoid screwing up percent sign removal. 1400 * 1401 * @since 1.6.17 1402 */ 1403 $p_s_text = anrghg_url_decode( $p_s_text ); 1404 1405 /** 1373 1406 * Optionally converts to lowercase before configurable conversions. 1374 1407 */ … … 1384 1417 1385 1418 /** 1386 * Decodes HTML entities, reencodes &, <, >. 1387 * 1388 * @since 1.6.16 1389 */ 1390 $p_s_text = html_entity_decode( $p_s_text ); 1391 $p_s_text = preg_replace( '/&/', '&', $p_s_text ); 1392 $p_s_text = preg_replace( array( '/</', '/>/' ), array( '<', '>' ), $p_s_text ); 1393 1394 /** 1395 * Performs a configurable set of additional conversions. 1419 * Performs a configurable set of custom conversions. 1396 1420 */ 1397 1421 $l_a_needle = array(); … … 1431 1455 1432 1456 /** 1457 * Converts Latin alphabetic abbreviation indicators. 1458 * 1459 * @since 1.6.17 1460 * Preformatted superscript small q has not been encoded, by lack of usage. 1461 */ 1462 $l_a_needle = array( 'ª', 'º', 'ᵃ', 'ᵇ', 'ᶜ', 'ᵈ', 'ᵉ', 'ᶠ', 'ᵍ', 'ʰ', 'ⁱ', 'ʲ', 'ᵏ', 'ˡ', 'ᵐ', 'ⁿ', 'ᵒ', 'ᵖ', 'ʳ', 'ˢ', 'ᵗ', 'ᵘ', 'ᵛ', 'ʷ', 'ˣ', 'ʸ', 'ᶻ' ); 1463 $l_a_replace = array( 'a', 'o', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' ); 1464 $p_s_text = str_replace( $l_a_needle, $l_a_replace, $p_s_text ); 1465 1466 /** 1433 1467 * Performs a set of alphabetic conversions, partly in `remove_accents()`. 1434 1468 */ … … 1447 1481 /** 1448 1482 * Removes accents. 1483 * 1484 * @since 1.6.17 Stop always deleting acute, grave, circumflex accents, macron and hacek. 1485 * `sanitize_title_with_dashes()` always selectively deletes 5 combining diacritics, but 1486 * leaves all others alone, even combining tilde. Vietnamese acute tone mark is part of 1487 * the deletion, but Vietnamese grave tone mark is not, although both are deprecated. 1488 * Full list: U+0301, U+0341, U+0300, U+0304, U+030C. 1489 * @since 1.6.17 Optionally remove the full set of combining diacritics. 1449 1490 */ 1450 1491 if ( anrghg_apply_config( 'anrghg_fragment_ids_remove_accents' ) ) { 1451 1492 $p_s_text = remove_accents( $p_s_text ); 1452 } 1453 1454 /** 1455 * Converts to hyphen-minus, from `sanitize_title_with_dashes`. 1456 */ 1457 $l_a_needle = array( '/', ' ', '–', '—', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' 1493 $p_s_text = preg_replace( '/\\p{M}/u', '', $p_s_text ); 1494 } 1495 1496 /** 1497 * Converts to hyphen-minus. According to `sanitize_title_with_dashes()`. 1498 */ 1499 $l_a_needle = array( '.', '/', ' ', '–', '—', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' 1458 1500 ', ' 1459 1501 ', ' ' ); 1460 $l_a_replace = '-'; 1461 $p_s_text = str_replace( $l_a_needle, $l_a_replace, $p_s_text ); 1462 1463 /** 1464 * Converts period to hyphen-minus, from `sanitize_title_with_dashes`. 1465 */ 1466 $p_s_text = str_replace( '.', '-', $p_s_text ); 1467 1468 /** 1469 * Converts to 'x', from `sanitize_title_with_dashes`. 1502 $p_s_text = str_replace( $l_a_needle, '-', $p_s_text ); 1503 1504 /** 1505 * Converts to 'x'. According to `sanitize_title_with_dashes()`. 1470 1506 */ 1471 1507 $p_s_text = str_replace( '×', 'x', $p_s_text ); 1472 1508 1473 1509 /** 1474 * Removes entirely, from `sanitize_title_with_dashes`. 1475 */ 1476 $l_a_needle = array( '', '¡', '¿', '«', '»', '‹', '›', '‘', '’', '“', '”', '‚', '‛', '„', '‟', '•', '©', '®', '°', '…', '™', '´', 'ˊ' ); 1477 $l_a_replace = ''; 1478 $p_s_text = str_replace( $l_a_needle, $l_a_replace, $p_s_text ); 1479 1480 /** 1481 * Removes percent signs that are not part of an octet, from `sanitize_title_with_dashes`. 1482 */ 1483 $p_s_text = preg_replace( '|%([a-fA-F0-9][a-fA-F0-9])|', '---$1---', $p_s_text ); 1484 $p_s_text = str_replace( '%', '', $p_s_text ); 1485 $p_s_text = preg_replace( '|---([a-fA-F0-9][a-fA-F0-9])---|', '%$1', $p_s_text ); 1486 1487 /** 1488 * Determines the text length and max length. 1489 */ 1490 $l_s_text_length = strlen( $p_s_text ); 1491 1492 /** 1493 * Percent-encodes, from `sanitize_title_with_dashes` but with configurable max length. 1494 */ 1495 if ( seems_utf8( $p_s_text ) ) { 1496 $p_s_text = utf8_uri_encode( $p_s_text, intval( $p_i_max_length ) ); 1497 } 1498 1499 /** 1500 * Removes the remainder from `sanitize_title_with_dashes`. 1501 */ 1502 $p_s_text = str_replace( 1503 array( 1504 // Combining acute accents. 1505 '%cc%81', 1506 '%cd%81', 1507 // Combining grave accent, macron, caron. 1508 '%cc%80', 1509 '%cc%84', 1510 '%cc%8c', 1511 // Non-visible characters that display without a width. 1512 '%e2%80%8b', 1513 '%e2%80%8c', 1514 '%e2%80%8d', 1515 '%e2%80%8e', 1516 '%e2%80%8f', 1517 '%e2%80%aa', 1518 '%e2%80%ab', 1519 '%e2%80%ac', 1520 '%e2%80%ad', 1521 '%e2%80%ae', 1522 '%ef%bb%bf', 1523 ), 1524 '', 1525 $p_s_text 1526 ); 1527 1528 /** 1529 * Cleans up. 1530 */ 1531 $p_s_text = preg_replace( '/[^%A-Za-z0-9 _-]/', '', $p_s_text ); 1510 * Removes entirely. According to `sanitize_title_with_dashes()`. 1511 * 1512 * @since 1.6.17 Percent sign is part of this set. 1513 * See * URL-decodes to avoid screwing up percent sign removal. 1514 * `sanitize_title_with_dashes()` also removes 11 “Non-visible 1515 * characters that display without a width”: U+00AD, U+200B, 1516 * U+200B, U+200C, U+200D, U+200E, U+200F, U+202A, U+202B, 1517 * U+202C, U+202D, U+202E, U+FEFF. Rather remove the full set. 1518 */ 1519 $p_s_text = preg_replace( '/\\p{Cf}/u', '', $p_s_text ); 1520 $l_a_needle = array( '%', '¡', '¿', '«', '»', '‹', '›', '‘', '’', '“', '”', '‚', '‛', '„', '‟', '•', '©', '®', '°', '…', '™', '´', 'ˊ' ); 1521 $p_s_text = str_replace( $l_a_needle, '', $p_s_text ); 1532 1522 1533 1523 /** … … 1537 1527 1538 1528 /** 1539 * Crops leading andtrailing hyphen-minus.1529 * Crops leading, trailing hyphen-minus. 1540 1530 */ 1541 1531 $p_s_text = trim( $p_s_text, '-' ); … … 1548 1538 */ 1549 1539 $p_s_text = preg_replace( '/-+/', '-', $p_s_text ); 1540 1541 /** 1542 * Stores the text length for informed truncation. 1543 */ 1544 $l_s_text_length = strlen( $p_s_text ); 1545 1546 /** 1547 * Percent-encodes. From `sanitize_title_with_dashes()`. 1548 * 1549 * @since 0.9.0 The max length is configurable. 1550 * @since 1.6.17 Fall back on legacy clean-up, as else the job is done. 1551 */ 1552 if ( seems_utf8( $p_s_text ) ) { 1553 $p_s_text = utf8_uri_encode( $p_s_text, intval( $p_i_max_length ) ); 1554 } else { 1555 $p_s_text = preg_replace( '/[^%A-Za-z0-9 _-]/', '', $p_s_text ); 1556 } 1550 1557 1551 1558 /** … … 1708 1715 } 1709 1716 if ( $p_b_decode ) { 1710 $p_s_string = urldecode( $p_s_string );1717 $p_s_string = anrghg_url_decode( $p_s_string ); 1711 1718 } else { 1712 1719 $p_s_string = preg_replace( '/%[0-9A-Fa-f]{2}/', '', $p_s_string ); -
anrghg/tags/1.6.17/package.json
r2779832 r2780783 1 1 { 2 2 "name": "anrghg", 3 "version": " 1.6.1 5",3 "version": " 1.6.17", 4 4 "description": "A.N.R.GHG Publishing Helper", 5 5 "main": "index.js", -
anrghg/tags/1.6.17/readme.txt
r2780342 r2780783 8 8 Requires PHP: 5.6 9 9 Tested PHP up to: 8.0 10 Package Version: 1.6.1 6.011 Version: 1.6.1 610 Package Version: 1.6.17.0 11 Version: 1.6.17 12 12 CAUTION: The following field is parsed in `trunk/` for release configuration: 13 Stable Tag: 1.6.1 613 Stable Tag: 1.6.17 14 14 License: GPLv2 or later 15 15 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 542 542 == Changelog == 543 543 544 = 1.6.17 (2022-09-06) = 545 546 * Localization: Fragment IDs and slugs: Maintain plus sign instead of letting it turn into space then hyphen-minus. 547 * Localization: Fragment IDs and slugs: Stop always deleting acute, grave, circumflex accents, macron and hacek. 548 * Localization: Fragment IDs and slugs: Optionally remove the full set of combining diacritics. 549 * Localization: Fragment IDs and slugs: Remove the full set of format control characters. 550 * Localization: Fragment IDs and slugs: Convert Latin alphabetic abbreviation indicators. 551 544 552 = 1.6.16 (2022-09-05) = 545 553 -
anrghg/tags/1.6.17/svn-revs.txt
r2780342 r2780783 11 11 Past revisions: 12 12 13 1.6.16.0 2780342 2022-09-05 21:34:56 +0000 (Mon, 05 Sep 2022) 13 14 1.6.15.0 2779832 2022-09-04 17:16:03 +0000 (Sun, 04 Sep 2022) 14 15 1.6.14.0 2779672 2022-09-04 04:48:35 +0000 (Sun, 04 Sep 2022) -
anrghg/trunk/anrghg.php
r2780342 r2780783 14 14 * Tested PHP up to: 8.0 15 15 * CAUTION: The following field is parsed in the `stable tag` folder for upgrade configuration: 16 * Version: 1.6.1 616 * Version: 1.6.17 17 17 * Author: ANRGHG 18 18 * Author URI: https://anrghg.sunsite.fr … … 101 101 * @var string C_S_ANRGHG_VER Plugin version constant. 102 102 */ 103 define( 'C_S_ANRGHG_VER', '1.6.1 6' );103 define( 'C_S_ANRGHG_VER', '1.6.17' ); 104 104 105 105 /** -
anrghg/trunk/includes/modular.php
r2780342 r2780783 1313 1313 1314 1314 /** 1315 * URL-decodes while maintaining plus signs. 1316 * 1317 * @since 1.6.17 1318 * `urldecode()` converts a plus sign to a space, despite 1319 * `+` is allowed in URLs but some apps turn it to `%20`. 1320 * @link https://support.google.com/webmasters/thread/62860395/does-having-plus-signs-vs-hyphens-to-separate-words-in-your-url-slug-impact-your-seo?hl=en 1321 * To match user expectations, `+` is decoded beforehand. 1322 * @param string $p_s_string String to decode. 1323 * @return string 1324 */ 1325 function anrghg_url_decode( $p_s_string ) { 1326 $p_s_string = str_replace( '%2B', '+', $p_s_string ); 1327 $p_s_string = urldecode( $p_s_string ); 1328 return $p_s_string; 1329 } 1330 1331 /** 1315 1332 * Derives simplified fragment identifiers. 1316 1333 * … … 1371 1388 1372 1389 /** 1390 * Decodes HTML entities, reencodes &, <, >. 1391 * 1392 * @since 1.6.16 1393 */ 1394 $p_s_text = html_entity_decode( $p_s_text ); 1395 $p_s_text = preg_replace( '/&/', '&', $p_s_text ); 1396 $p_s_text = preg_replace( array( '/</', '/>/' ), array( '<', '>' ), $p_s_text ); 1397 1398 /** 1399 * URL-decodes to avoid screwing up percent sign removal. 1400 * 1401 * @since 1.6.17 1402 */ 1403 $p_s_text = anrghg_url_decode( $p_s_text ); 1404 1405 /** 1373 1406 * Optionally converts to lowercase before configurable conversions. 1374 1407 */ … … 1384 1417 1385 1418 /** 1386 * Decodes HTML entities, reencodes &, <, >. 1387 * 1388 * @since 1.6.16 1389 */ 1390 $p_s_text = html_entity_decode( $p_s_text ); 1391 $p_s_text = preg_replace( '/&/', '&', $p_s_text ); 1392 $p_s_text = preg_replace( array( '/</', '/>/' ), array( '<', '>' ), $p_s_text ); 1393 1394 /** 1395 * Performs a configurable set of additional conversions. 1419 * Performs a configurable set of custom conversions. 1396 1420 */ 1397 1421 $l_a_needle = array(); … … 1431 1455 1432 1456 /** 1457 * Converts Latin alphabetic abbreviation indicators. 1458 * 1459 * @since 1.6.17 1460 * Preformatted superscript small q has not been encoded, by lack of usage. 1461 */ 1462 $l_a_needle = array( 'ª', 'º', 'ᵃ', 'ᵇ', 'ᶜ', 'ᵈ', 'ᵉ', 'ᶠ', 'ᵍ', 'ʰ', 'ⁱ', 'ʲ', 'ᵏ', 'ˡ', 'ᵐ', 'ⁿ', 'ᵒ', 'ᵖ', 'ʳ', 'ˢ', 'ᵗ', 'ᵘ', 'ᵛ', 'ʷ', 'ˣ', 'ʸ', 'ᶻ' ); 1463 $l_a_replace = array( 'a', 'o', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' ); 1464 $p_s_text = str_replace( $l_a_needle, $l_a_replace, $p_s_text ); 1465 1466 /** 1433 1467 * Performs a set of alphabetic conversions, partly in `remove_accents()`. 1434 1468 */ … … 1447 1481 /** 1448 1482 * Removes accents. 1483 * 1484 * @since 1.6.17 Stop always deleting acute, grave, circumflex accents, macron and hacek. 1485 * `sanitize_title_with_dashes()` always selectively deletes 5 combining diacritics, but 1486 * leaves all others alone, even combining tilde. Vietnamese acute tone mark is part of 1487 * the deletion, but Vietnamese grave tone mark is not, although both are deprecated. 1488 * Full list: U+0301, U+0341, U+0300, U+0304, U+030C. 1489 * @since 1.6.17 Optionally remove the full set of combining diacritics. 1449 1490 */ 1450 1491 if ( anrghg_apply_config( 'anrghg_fragment_ids_remove_accents' ) ) { 1451 1492 $p_s_text = remove_accents( $p_s_text ); 1452 } 1453 1454 /** 1455 * Converts to hyphen-minus, from `sanitize_title_with_dashes`. 1456 */ 1457 $l_a_needle = array( '/', ' ', '–', '—', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' 1493 $p_s_text = preg_replace( '/\\p{M}/u', '', $p_s_text ); 1494 } 1495 1496 /** 1497 * Converts to hyphen-minus. According to `sanitize_title_with_dashes()`. 1498 */ 1499 $l_a_needle = array( '.', '/', ' ', '–', '—', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' 1458 1500 ', ' 1459 1501 ', ' ' ); 1460 $l_a_replace = '-'; 1461 $p_s_text = str_replace( $l_a_needle, $l_a_replace, $p_s_text ); 1462 1463 /** 1464 * Converts period to hyphen-minus, from `sanitize_title_with_dashes`. 1465 */ 1466 $p_s_text = str_replace( '.', '-', $p_s_text ); 1467 1468 /** 1469 * Converts to 'x', from `sanitize_title_with_dashes`. 1502 $p_s_text = str_replace( $l_a_needle, '-', $p_s_text ); 1503 1504 /** 1505 * Converts to 'x'. According to `sanitize_title_with_dashes()`. 1470 1506 */ 1471 1507 $p_s_text = str_replace( '×', 'x', $p_s_text ); 1472 1508 1473 1509 /** 1474 * Removes entirely, from `sanitize_title_with_dashes`. 1475 */ 1476 $l_a_needle = array( '', '¡', '¿', '«', '»', '‹', '›', '‘', '’', '“', '”', '‚', '‛', '„', '‟', '•', '©', '®', '°', '…', '™', '´', 'ˊ' ); 1477 $l_a_replace = ''; 1478 $p_s_text = str_replace( $l_a_needle, $l_a_replace, $p_s_text ); 1479 1480 /** 1481 * Removes percent signs that are not part of an octet, from `sanitize_title_with_dashes`. 1482 */ 1483 $p_s_text = preg_replace( '|%([a-fA-F0-9][a-fA-F0-9])|', '---$1---', $p_s_text ); 1484 $p_s_text = str_replace( '%', '', $p_s_text ); 1485 $p_s_text = preg_replace( '|---([a-fA-F0-9][a-fA-F0-9])---|', '%$1', $p_s_text ); 1486 1487 /** 1488 * Determines the text length and max length. 1489 */ 1490 $l_s_text_length = strlen( $p_s_text ); 1491 1492 /** 1493 * Percent-encodes, from `sanitize_title_with_dashes` but with configurable max length. 1494 */ 1495 if ( seems_utf8( $p_s_text ) ) { 1496 $p_s_text = utf8_uri_encode( $p_s_text, intval( $p_i_max_length ) ); 1497 } 1498 1499 /** 1500 * Removes the remainder from `sanitize_title_with_dashes`. 1501 */ 1502 $p_s_text = str_replace( 1503 array( 1504 // Combining acute accents. 1505 '%cc%81', 1506 '%cd%81', 1507 // Combining grave accent, macron, caron. 1508 '%cc%80', 1509 '%cc%84', 1510 '%cc%8c', 1511 // Non-visible characters that display without a width. 1512 '%e2%80%8b', 1513 '%e2%80%8c', 1514 '%e2%80%8d', 1515 '%e2%80%8e', 1516 '%e2%80%8f', 1517 '%e2%80%aa', 1518 '%e2%80%ab', 1519 '%e2%80%ac', 1520 '%e2%80%ad', 1521 '%e2%80%ae', 1522 '%ef%bb%bf', 1523 ), 1524 '', 1525 $p_s_text 1526 ); 1527 1528 /** 1529 * Cleans up. 1530 */ 1531 $p_s_text = preg_replace( '/[^%A-Za-z0-9 _-]/', '', $p_s_text ); 1510 * Removes entirely. According to `sanitize_title_with_dashes()`. 1511 * 1512 * @since 1.6.17 Percent sign is part of this set. 1513 * See * URL-decodes to avoid screwing up percent sign removal. 1514 * `sanitize_title_with_dashes()` also removes 11 “Non-visible 1515 * characters that display without a width”: U+00AD, U+200B, 1516 * U+200B, U+200C, U+200D, U+200E, U+200F, U+202A, U+202B, 1517 * U+202C, U+202D, U+202E, U+FEFF. Rather remove the full set. 1518 */ 1519 $p_s_text = preg_replace( '/\\p{Cf}/u', '', $p_s_text ); 1520 $l_a_needle = array( '%', '¡', '¿', '«', '»', '‹', '›', '‘', '’', '“', '”', '‚', '‛', '„', '‟', '•', '©', '®', '°', '…', '™', '´', 'ˊ' ); 1521 $p_s_text = str_replace( $l_a_needle, '', $p_s_text ); 1532 1522 1533 1523 /** … … 1537 1527 1538 1528 /** 1539 * Crops leading andtrailing hyphen-minus.1529 * Crops leading, trailing hyphen-minus. 1540 1530 */ 1541 1531 $p_s_text = trim( $p_s_text, '-' ); … … 1548 1538 */ 1549 1539 $p_s_text = preg_replace( '/-+/', '-', $p_s_text ); 1540 1541 /** 1542 * Stores the text length for informed truncation. 1543 */ 1544 $l_s_text_length = strlen( $p_s_text ); 1545 1546 /** 1547 * Percent-encodes. From `sanitize_title_with_dashes()`. 1548 * 1549 * @since 0.9.0 The max length is configurable. 1550 * @since 1.6.17 Fall back on legacy clean-up, as else the job is done. 1551 */ 1552 if ( seems_utf8( $p_s_text ) ) { 1553 $p_s_text = utf8_uri_encode( $p_s_text, intval( $p_i_max_length ) ); 1554 } else { 1555 $p_s_text = preg_replace( '/[^%A-Za-z0-9 _-]/', '', $p_s_text ); 1556 } 1550 1557 1551 1558 /** … … 1708 1715 } 1709 1716 if ( $p_b_decode ) { 1710 $p_s_string = urldecode( $p_s_string );1717 $p_s_string = anrghg_url_decode( $p_s_string ); 1711 1718 } else { 1712 1719 $p_s_string = preg_replace( '/%[0-9A-Fa-f]{2}/', '', $p_s_string ); -
anrghg/trunk/package.json
r2779832 r2780783 1 1 { 2 2 "name": "anrghg", 3 "version": " 1.6.1 5",3 "version": " 1.6.17", 4 4 "description": "A.N.R.GHG Publishing Helper", 5 5 "main": "index.js", -
anrghg/trunk/readme.txt
r2780342 r2780783 8 8 Requires PHP: 5.6 9 9 Tested PHP up to: 8.0 10 Package Version: 1.6.1 6.011 Version: 1.6.1 610 Package Version: 1.6.17.0 11 Version: 1.6.17 12 12 CAUTION: The following field is parsed in `trunk/` for release configuration: 13 Stable Tag: 1.6.1 613 Stable Tag: 1.6.17 14 14 License: GPLv2 or later 15 15 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 542 542 == Changelog == 543 543 544 = 1.6.17 (2022-09-06) = 545 546 * Localization: Fragment IDs and slugs: Maintain plus sign instead of letting it turn into space then hyphen-minus. 547 * Localization: Fragment IDs and slugs: Stop always deleting acute, grave, circumflex accents, macron and hacek. 548 * Localization: Fragment IDs and slugs: Optionally remove the full set of combining diacritics. 549 * Localization: Fragment IDs and slugs: Remove the full set of format control characters. 550 * Localization: Fragment IDs and slugs: Convert Latin alphabetic abbreviation indicators. 551 544 552 = 1.6.16 (2022-09-05) = 545 553 -
anrghg/trunk/svn-revs.txt
r2780342 r2780783 11 11 Past revisions: 12 12 13 1.6.16.0 2780342 2022-09-05 21:34:56 +0000 (Mon, 05 Sep 2022) 13 14 1.6.15.0 2779832 2022-09-04 17:16:03 +0000 (Sun, 04 Sep 2022) 14 15 1.6.14.0 2779672 2022-09-04 04:48:35 +0000 (Sun, 04 Sep 2022)
Note: See TracChangeset
for help on using the changeset viewer.