WordPress.org

Make WordPress Core

Ticket #23347: 23347.13.diff

File 23347.13.diff, 523 bytes (added by wonderboymusic, 12 months ago)
  • wp-includes/post-formats.php

    diff --git wp-includes/post-formats.php wp-includes/post-formats.php
    index b52f278..400bfcf 100644
    function post_formats_compat( $content, $id = 0 ) { 
    347347 
    348348        switch ( $format ) { 
    349349                case 'link': 
    350                         $compat['tag'] = ''; 
    351                         $compat['position'] = 'before'; 
    352  
    353350                        if ( ! empty( $meta['link_url'] ) ) { 
    354351                                $esc_url = preg_quote( $meta['link_url'], '#' ); 
    355352                                // Make sure the same URL isn't in the post (modified/extended versions allowed)