WordPress.org

Make WordPress Core

Ticket #33756: 33756.5.diff

File 33756.5.diff, 846 bytes (added by ebinnion, 2 years ago)

5th attempt at solution

  • src/wp-includes/formatting.php

     
    19141914}
    19151915
    19161916/**
    1917  * Sanitizes a title, or returns a fallback title.
     1917 * Sanitizes a into a slug, which can be used in places such as URLs or HTML attributes.
    19181918 *
    1919  * Specifically, HTML and PHP tags are stripped. Further actions can be added
    1920  * via the plugin API. If $title is empty and $fallback_title is set, the latter
     1919 * In a save context, converts accents to ASCII characters. By default, output is
     1920 * further limited to alphanumeric characters, underscore (_) and dash (-) through the
     1921 * 'sanitize_title' filter. If $title is empty and $fallback_title is set, the latter
    19211922 * will be used.
    19221923 *
    19231924 * @since 1.0.0