Changeset 31894
- Timestamp:
- 03/26/2015 01:16:58 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-press-this.php
r31868 r31894 1010 1010 if ( ! empty( $data['u'] ) && $oembed->get_provider( $data['u'], array( 'discover' => false ) ) ) { 1011 1011 $default_html['embed'] = '<p>[embed]' . $data['u'] . '[/embed]</p>'; 1012 1013 if ( ! empty( $data['s'] ) ) { 1014 // If the user has selected some text, do quote it. 1015 $default_html['quote'] = '<blockquote>%1$s</blockquote>'; 1016 } 1012 1017 } else { 1013 1018 $default_html['quote'] = '<blockquote>%1$s</blockquote>'; … … 1031 1036 1032 1037 // Wrap suggested content in the specified HTML. 1033 if ( ! empty( $default_html['quote'] ) ) {1038 if ( ! empty( $default_html['quote'] ) && $text ) { 1034 1039 $content .= sprintf( $default_html['quote'], $text ); 1035 1040 }
Note: See TracChangeset
for help on using the changeset viewer.