WordPress.org

Make WordPress Core

Ticket #12536: 12536.diff

File 12536.diff, 696 bytes (added by Denis-de-Bernardy, 5 years ago)
  • wp-includes/post-template.php

     
    220220                                $output .= apply_filters( 'the_content_more_link', ' <a href="' . get_permalink() . "#more-$id\" class=\"more-link\">$more_link_text</a>", $more_link_text ); 
    221221                        $output = force_balance_tags($output); 
    222222                } 
    223  
     223                $output = rtrim($output); 
    224224        } 
    225225        if ( $preview ) // preview fix for javascript bug with foreign languages 
    226226                $output =       preg_replace_callback('/\%u([0-9A-F]{4})/', create_function('$match', 'return "&#" . base_convert($match[1], 16, 10) . ";";'), $output);