Make WordPress Core

Ticket #16935: press_this_blockquote_2.diff

File press_this_blockquote_2.diff, 808 bytes (added by topdownjimmy, 14 years ago)

Added blockquote with "press-this-selection" class

  • wp-admin/press-this.php

     
    621621                        <div id="quicktags"></div>
    622622                        <div class="editor-container">
    623623                                <textarea name="content" id="content" style="width:100%;" class="theEditor" rows="15"><?php
    624                                         if ( $selection )
    625                                                 echo wp_richedit_pre($selection);
     624+                                       if ( $selection && $url ) {
     625+                                               echo wp_richedit_pre( sprintf ( "<blockquote class="press-this-selection">cite='%s'>%s</blockquote>", esc_url( $url ), $selection ) );
     626+                                       } else if ( $selection ) {
     627+                                               echo wp_richedit_pre( sprintf ( "<blockquote>%s</blockquote>", $selection ) );
     628+                                       }
    626629                                        if ( $url ) {
    627630                                                echo '<p>';
    628631                                                if ( $selection )