Make WordPress Core

Ticket #31763: 31763.diff

File 31763.diff, 812 bytes (added by stephdau, 10 years ago)
  • src/wp-admin/includes/class-wp-press-this.php

     
    10091009
    10101010                if ( ! empty( $data['u'] ) && $oembed->get_provider( $data['u'], array( 'discover' => false ) ) ) {
    10111011                        $default_html['embed'] = '<p>[embed]' . $data['u'] . '[/embed]</p>';
     1012                        if ( ! empty( $data['s'] ) ) {
     1013                                // If the user actually selected some text, do quote it.
     1014                                $default_html['quote'] = '<blockquote>%1$s</blockquote>';
     1015                        }
    10121016                } else {
    10131017                        $default_html['quote'] = '<blockquote>%1$s</blockquote>';
    10141018                        $default_html['link'] = '<p>' . _x( 'Source:', 'Used in Press This to indicate where the content comes from.' ) .