Make WordPress Core

Ticket #24330: 24330-01.patch

File 24330-01.patch, 1.1 KB (added by gcorne, 11 years ago)
  • wp-includes/comment.php

    diff --git wp-includes/comment.php wp-includes/comment.php
    index 16286cf..ac4ec9c 100644
    function do_trackbacks($post_id) { 
    17491749        }
    17501750
    17511751        if ( empty($post->post_excerpt) )
    1752                 $excerpt = apply_filters('the_content', $post->post_content);
     1752                $excerpt = apply_filters('the_content', $post->post_content, $post->ID);
    17531753        else
    17541754                $excerpt = apply_filters('the_excerpt', $post->post_excerpt);
    17551755        $excerpt = str_replace(']]>', ']]>', $excerpt);
  • wp-includes/default-filters.php

    diff --git wp-includes/default-filters.php wp-includes/default-filters.php
    index c513e7f..1829321 100644
    add_filter( 'the_title', 'convert_chars' ); 
    136136add_filter( 'the_title', 'trim'          );
    137137add_filter( 'the_title', '_post_formats_title', 10, 2 );
    138138
    139 add_filter( 'the_content', 'post_formats_compat', 7 );
     139add_filter( 'the_content', 'post_formats_compat', 7, 2 );
    140140add_filter( 'the_content', 'wptexturize'            );
    141141add_filter( 'the_content', 'convert_smilies'        );
    142142add_filter( 'the_content', 'convert_chars'          );