Changeset 31836 for trunk/src/wp-admin/includes/class-wp-press-this.php
- Timestamp:
- 03/20/2015 12:18:00 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-press-this.php
r31827 r31836 1003 1003 } 1004 1004 1005 $default_html = array( 'quote' => '', 'link' => '', 'embed' => '' ); 1006 1005 1007 require_once( ABSPATH . WPINC . '/class-oembed.php' ); 1006 1008 $oembed = _wp_oembed_get_object(); 1007 1009 1008 1010 if ( ! empty( $data['u'] ) && $oembed->get_provider( $data['u'], array( 'discover' => false ) ) ) { 1009 $default_html = array( 1010 'quote' => '', 1011 'link' => '', 1012 'embed' => '<p>[embed]' . $data['u'] . '[/embed]</p>', 1013 ); 1011 $default_html['embed'] = '<p>[embed]' . $data['u'] . '[/embed]</p>'; 1014 1012 } else { 1015 $default_html = array( 1016 'quote' => '<blockquote>%1$s</blockquote>', 1017 'link' => '<p>' . _x( 'Source:', 'Used in Press This to indicate where the content comes from.' ) . 1018 ' <em><a href="%1$s">%2$s</a></em></p>', 1019 ); 1013 $default_html['quote'] = '<blockquote>%1$s</blockquote>'; 1014 $default_html['link'] = '<p>' . _x( 'Source:', 'Used in Press This to indicate where the content comes from.' ) . 1015 ' <em><a href="%1$s">%2$s</a></em></p>'; 1020 1016 } 1021 1017
Note: See TracChangeset
for help on using the changeset viewer.