Make WordPress Core

Changeset 55863


Ignore:
Timestamp:
05/27/2023 09:51:23 AM (4 months ago)
Author:
SergeyBiryukov
Message:

Themes: Use correct escaping function for aria-label in _navigation_markup().

Follow-up to [46236].

Props sabernhardt, costdev, mukesh27.
Fixes #58387.

File:
1 edited

Legend:

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

    r55743 r55863  
    30253025    $template = apply_filters( 'navigation_markup_template', $template, $css_class );
    30263026
    3027     return sprintf( $template, sanitize_html_class( $css_class ), esc_html( $screen_reader_text ), $links, esc_html( $aria_label ) );
     3027    return sprintf( $template, sanitize_html_class( $css_class ), esc_html( $screen_reader_text ), $links, esc_attr( $aria_label ) );
    30283028}
    30293029
Note: See TracChangeset for help on using the changeset viewer.