WordPress.org

Make WordPress Core

Ticket #7084: default-filters.php.diff

File default-filters.php.diff, 555 bytes (added by jtatum, 7 years ago)

Implementing widget_title filter

  • wp-includes/default-filters.php

     
    7676 
    7777// Format strings for display. 
    7878$filters = array('comment_author', 'term_name', 'link_name', 'link_description', 
    79         'link_notes', 'bloginfo', 'wp_title'); 
     79        'link_notes', 'bloginfo', 'wp_title', 'widget_title'); 
    8080foreach ( $filters as $filter ) { 
    8181        add_filter($filter, 'wptexturize'); 
    8282        add_filter($filter, 'convert_chars');