WordPress.org

Make WordPress Core

Ticket #8967: 8967.diff

File 8967.diff, 679 bytes (added by Denis-de-Bernardy, 5 years ago)
  • wp-includes/general-template.php

     
    10741074        if ( $ak_post_titles ) { 
    10751075                foreach ( (array) $ak_post_titles as $ak_post_title ) { 
    10761076 
    1077                                 $post_title = apply_filters( "the_title", $ak_post_title->post_title ); 
    1078                                 $post_title = str_replace('"', '"', wptexturize( $post_title )); 
     1077                                $post_title = wp_specialchars($ak_post_title->post_title, ENT_COMPAT); 
    10791078 
    10801079                                if ( empty($ak_titles_for_day['day_'.$ak_post_title->dom]) ) 
    10811080                                        $ak_titles_for_day['day_'.$ak_post_title->dom] = '';