Make WordPress Core


Ignore:
Timestamp:
02/15/2023 01:04:06 PM (15 months ago)
Author:
SergeyBiryukov
Message:

Docs: Improve code comments in some sanitizing functions.

This aims to clarify a few inline comments related to removing percent-encoded characters and HTML entities.

Affected functions:

  • sanitize_user()
  • sanitize_title_with_dashes()
  • sanitize_html_class()
  • _sanitize_text_fields()
  • get_comments_number_text()

Follow-up to [465], [3454], [11433], [12503], [37987].

Props ace100, tanjimtc71, codemonksuvro, SergeyBiryukov.
Fixes #57712.

File:
1 edited

Legend:

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

    r54785 r55346  
    737737    }
    738738
    739     // Hex encoded octets are case-insensitive.
     739    // Hex-encoded octets are case-insensitive.
    740740    if ( false !== strpos( $requested_url, '%' ) ) {
    741741        if ( ! function_exists( 'lowercase_octets' ) ) {
Note: See TracChangeset for help on using the changeset viewer.