diff --git src/wp-includes/formatting.php src/wp-includes/formatting.php
index be8ea6c..4e82133 100644
|
|
|
function sanitize_key( $key ) {
|
| 1440 | 1440 | } |
| 1441 | 1441 | |
| 1442 | 1442 | /** |
| 1443 | | * Sanitizes a title, or returns a fallback title. |
| | 1443 | * Sanitizes a string for use as a slug in a URL. |
| 1444 | 1444 | * |
| 1445 | 1445 | * Specifically, HTML and PHP tags are stripped. Further actions can be added |
| 1446 | | * via the plugin API. If $title is empty and $fallback_title is set, the latter |
| 1447 | | * will be used. |
| | 1446 | * via the plugin API. If the sanitized version of $title is empty, |
| | 1447 | * `$fallback_title` will be returned. |
| 1448 | 1448 | * |
| 1449 | 1449 | * @since 1.0.0 |
| 1450 | 1450 | * |
| … |
… |
function sanitize_title_for_query( $title ) {
|
| 1491 | 1491 | } |
| 1492 | 1492 | |
| 1493 | 1493 | /** |
| 1494 | | * Sanitizes a title, replacing whitespace and a few other characters with dashes. |
| | 1494 | * Sanitizes a string. |
| 1495 | 1495 | * |
| 1496 | | * Limits the output to alphanumeric characters, underscore (_) and dash (-). |
| 1497 | | * Whitespace becomes a dash. |
| | 1496 | * Output is limited to to alphanumeric characters, underscore (_) and dash (-). |
| | 1497 | * Various characters (including whitespace) are convered to dashes. |
| 1498 | 1498 | * |
| 1499 | 1499 | * @since 1.2.0 |
| 1500 | 1500 | * |
| … |
… |
function sanitize_title_with_dashes( $title, $raw_title = '', $context = 'displa
|
| 1520 | 1520 | } |
| 1521 | 1521 | |
| 1522 | 1522 | $title = strtolower($title); |
| 1523 | | $title = preg_replace('/&.+?;/', '', $title); // kill entities |
| | 1523 | // Remove HTML entities. |
| | 1524 | $title = preg_replace('/&.+?;/', '', $title); |
| 1524 | 1525 | $title = str_replace('.', '-', $title); |
| 1525 | 1526 | |
| 1526 | 1527 | if ( 'save' == $context ) { |