WordPress.org

Make WordPress Core

Ticket #23347: 23347.12.diff

File 23347.12.diff, 513 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 bd164af..2e7960f 100644
    function post_formats_compat( $content, $id = 0 ) { 
    321321 
    322322        switch ( $format ) { 
    323323                case 'link': 
    324                         $compat['tag'] = ''; 
    325                         $compat['position'] = 'before'; 
    326  
    327324                        if ( ! empty( $meta['url'] ) ) { 
    328325                                $esc_url = preg_quote( $meta['url'], '#' ); 
    329326                                // Make sure the same URL isn't in the post (modified/extended versions allowed)