WordPress.org

Make WordPress Core

Changeset 47636


Ignore:
Timestamp:
04/29/2020 03:32:19 PM (2 months ago)
Author:
whyisjake
Message:

Block Editor: Coding standards, properly escape class names.

Props: aduth, noisysocks, pento, talldanwp, jorgefilipecosta, whyisjake, ellatrix, ehti.

Location:
trunk/src/wp-includes/blocks
Files:
2 edited

Legend:

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

    r47199 r47636  
    9393    }
    9494
    95     return "<ul class='{$class}'>{$list_items}</ul>";
     95    return sprintf( "<ul class='%s'>%s</ul>", esc_attr( $class ), $list_items );
    9696}
    9797
  • trunk/src/wp-includes/blocks/search.php

    r47199 r47636  
    5858    return sprintf(
    5959        '<form class="%s" role="search" method="get" action="%s">%s</form>',
    60         $class,
     60        esc_attr( $class ),
    6161        esc_url( home_url( '/' ) ),
    6262        $label_markup . $input_markup . $button_markup
Note: See TracChangeset for help on using the changeset viewer.