Making WordPress.org

Changeset 1526


Ignore:
Timestamp:
04/30/2015 11:28:50 PM (9 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Strip tags from changelog descriptions (for now at least). Fixes #1003.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php

    r1325 r1526  
    756756            foreach ( $since_meta as $meta ) {
    757757                if ( is_array( $meta ) && $since_term->name == $meta['content'] ) {
    758                     $description = empty( $meta['description'] ) ? '' : '<span class="since-description">' . esc_html( $meta['description'] ) . '</span>';
     758                    $description = empty( $meta['description'] ) ? '' : '<span class="since-description">' . esc_html( strip_tags( $meta['description'] ) ) . '</span>';
    759759
    760760                    $data[ $since_term->name ] = array(
Note: See TracChangeset for help on using the changeset viewer.