Make WordPress Core

Ticket #14909: press_this.diff

File press_this.diff, 2.2 KB (added by joehoyle, 14 years ago)

Added filter: press_this_title to Press This bookmarklet

  • wp-admin/tools.php

     
    3333
    3434        <p><?php _e('Use Press This to clip text, images and videos from any web page. Then edit and add more straight from Press This before you save or publish it in a post on your site.'); ?></p>
    3535        <p><?php _e('Drag-and-drop the following link to your bookmarks bar or right click it and add it to your favorites for a posting shortcut.') ?></p>
    36         <p class="pressthis"><a href="<?php echo htmlspecialchars( get_shortcut_link() ); ?>" title="<?php echo esc_attr(__('Press This')) ?>"><?php _e('Press This') ?></a></p>
     36        <p class="pressthis"><a href="<?php echo htmlspecialchars( get_shortcut_link() ); ?>" title="<?php echo esc_attr(__( apply_filters( 'press_this_title', 'Press This' ) )) ?>"><?php _e( apply_filters( 'press_this_title', 'Press This' ) ) ?></a></p>
    3737</div>
    3838<?php
    3939endif;
  • wp-admin/options-writing.php

     
    7272<p><?php _e('Press This is a bookmarklet: a little app that runs in your browser and lets you grab bits of the web.');?></p>
    7373<p><?php _e('Use Press This to clip text, images and videos from any web page. Then edit and add more straight from Press This before you save or publish it in a post on your site.'); ?></p>
    7474<p><?php _e('Drag-and-drop the following link to your bookmarks bar or right click it and add it to your favorites for a posting shortcut.') ?></p>
    75 <p class="pressthis"><a href="<?php echo htmlspecialchars( get_shortcut_link() ); ?>" title="<?php echo esc_attr(__('Press This')) ?>"><?php _e('Press This') ?></a></p>
     75<p class="pressthis"><a href="<?php echo htmlspecialchars( get_shortcut_link() ); ?>" title="<?php echo esc_attr(__( apply_filters( 'press_this_title', 'Press This' ) )) ?>"><?php _e( apply_filters( 'press_this_title', 'Press This' ) ) ?></a></p>
    7676
    7777<?php if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { ?>
    7878<h3><?php _e('Post via e-mail') ?></h3>