WordPress.org

Make WordPress Core

Ticket #23083: 23083.diff

File 23083.diff, 469 bytes (added by MikeHansenMe, 5 years ago)

adds tag balancing to text widget

  • wp-includes/default-filters.php

     
    159159
    160160add_filter( 'wp_sprintf', 'wp_sprintf_l', 10, 2 );
    161161
     162add_filter( 'widget_text', 'force_balance_tags' );
     163
    162164// RSS filters
    163165add_filter( 'the_title_rss',      'strip_tags'      );
    164166add_filter( 'the_title_rss',      'ent2ncr',      8 );