Changeset 31827
- Timestamp:
- 03/19/2015 12:51:43 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-press-this.php
r31818 r31827 779 779 <button type="button" class="add-cat-submit"><?php _e( 'Add' ); ?></button> 780 780 </div> 781 <?php } ?> 781 <?php 782 783 } 784 ?> 782 785 <div class="categories-search-wrapper"> 783 786 <input id="categories-search" type="search" class="categories-search" placeholder="<?php esc_attr_e( 'Search categories by name' ) ?>"> … … 810 813 $esc_tags = ''; 811 814 } 815 812 816 ?> 813 817 <div class="tagsdiv" id="post_tag"> 814 818 <div class="jaxtag"> 815 819 <input type="hidden" name="tax_input[post_tag]" class="the-tags" value="<?php echo $esc_tags; // escaped in get_terms_to_edit() ?>"> 816 817 820 <?php 821 818 822 if ( $user_can_assign_terms ) { 819 823 ?> … … 828 832 <?php echo $taxonomy->labels->separate_items_with_commas; ?> 829 833 </p> 830 <?php } ?> 834 <?php 835 } 836 837 ?> 831 838 </div> 832 839 <div class="tagchecklist"></div> 833 840 </div> 834 841 <?php 842 835 843 if ( $user_can_assign_terms ) { 836 844 ?> … … 995 1003 } 996 1004 997 $default_html = array( 998 'quote' => '<blockquote>%1$s</blockquote>', 999 'link' => '<p>' . _x( 'Source:', 'Used in Press This to indicate where the content comes from.' ) . 1000 ' <em><a href="%1$s">%2$s</a></em></p>', 1001 ); 1005 require_once( ABSPATH . WPINC . '/class-oembed.php' ); 1006 $oembed = _wp_oembed_get_object(); 1007 1008 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 ); 1014 } 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 ); 1020 } 1002 1021 1003 1022 /** … … 1011 1030 $default_html = apply_filters( 'press_this_suggested_html', $default_html, $data ); 1012 1031 1032 if ( ! empty( $default_html['embed'] ) ) { 1033 $content .= $default_html['embed']; 1034 } 1035 1013 1036 // Wrap suggested content in the specified HTML. 1014 1037 if ( ! empty( $default_html['quote'] ) ) { 1015 $content = sprintf( $default_html['quote'], $text );1038 $content .= sprintf( $default_html['quote'], $text ); 1016 1039 } 1017 1040
Note: See TracChangeset
for help on using the changeset viewer.