Make WordPress Core

Ticket #16369: 16369.2.patch

File 16369.2.patch, 1.6 KB (added by c3mdigital, 11 years ago)

refresh and refactor of original patch

  • wp-admin/tools.php

     
    3636<?php screen_icon(); ?>
    3737<h2><?php echo esc_html( $title ); ?></h2>
    3838
    39 <?php if ( current_user_can('edit_posts') ) : ?>
     39<?php if ( current_user_can('edit_posts') ) :
     40                $cat2tag_link = is_plugin_active( 'wpcat2tag-importer/wpcat2tag-importer.php' ) ? admin_url( 'admin.php?import=wpcat2tag' ) : admin_url( 'import.php' ) ?>
     41 
    4042<div class="tool-box">
    4143        <h3 class="title"><?php _e('Press This') ?></h3>
    4244        <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>
    4345
    44         <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>
     46        <p><?php printf( __('<a href="%s">Use this</a> to convert categories to tags or tags to categories.' ), esc_url( $cat2tag_link ) ) ?></p>
    4547        <p class="description"><?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>
    4648        <p class="pressthis"><a onclick="return false;" oncontextmenu="if(window.navigator.userAgent.indexOf('WebKit')!=-1||window.navigator.userAgent.indexOf('MSIE')!=-1){jQuery('.pressthis-code').show().find('textarea').focus().select();return false;}" href="<?php echo htmlspecialchars( get_shortcut_link() ); ?>"><span><?php _e('Press This') ?></span></a></p>
    4749        <div class="pressthis-code" style="display:none;">