Make WordPress Core

Changeset 49484


Ignore:
Timestamp:
11/02/2020 08:18:12 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Update description for the $context parameter of sanitize_title() and sanitize_title_with_dashes().

This brings some consistency between the two DocBlocks and adjusts the latter one per the documentation standards.

Follow-up to [49482].

See #50569.

File:
1 edited

Legend:

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

    r49482 r49484  
    21652165 * @param string $fallback_title Optional. A title to use if $title is empty. Default empty.
    21662166 * @param string $context        Optional. The operation for which the string is sanitized.
     2167 *                               When set to 'save', the string runs through remove_accents().
    21672168 *                               Default 'save'.
    21682169 * @return string The sanitized string.
     
    22172218 * @param string $title     The title to be sanitized.
    22182219 * @param string $raw_title Optional. Not used. Default empty.
    2219  * @param string $context   Optional. The context for the sanitization. When set to 'save', additional entities are converted to hyphens or stripped entirely.
    2220  *                          Default 'display'.
     2220 * @param string $context   Optional. The operation for which the string is sanitized.
     2221 *                          When set to 'save', additional entities are converted to hyphens
     2222 *                          or stripped entirely. Default 'display'.
    22212223 * @return string The sanitized title.
    22222224 */
Note: See TracChangeset for help on using the changeset viewer.