Make WordPress Core

Ticket #50569: 50569.3.diff

File 50569.3.diff, 720 bytes (added by audrasjb, 4 years ago)

Replace "sanitation" with "sanitization" for consistency with core

  • src/wp-includes/formatting.php

    diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php
    index 1cd43ab17f..92b9ace456 100644
    a b function sanitize_title_for_query( $title ) { 
    22162216 *
    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.
    22222222 */