Make WordPress Core

Changeset 49482


Ignore:
Timestamp:
11/02/2020 08:10:47 PM (4 years ago)
Author:
helen
Message:

Formatting: Update docs for $context in sanitize_title_with_dashes().

Props stevenlinx, audrasjb.
Fixes #50569.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r49239 r49482  
    22172217 * @param string $title     The title to be sanitized.
    22182218 * @param string $raw_title Optional. Not used. Default empty.
    2219  * @param string $context   Optional. The operation for which the string is sanitized.
     2219 * @param string $context   Optional. The context for the sanitization. When set to 'save', additional entities are converted to hyphens or stripped entirely.
    22202220 *                          Default 'display'.
    22212221 * @return string The sanitized title.
Note: See TracChangeset for help on using the changeset viewer.