Make WordPress Core

Ticket #27957: 27957.patch

File 27957.patch, 2.2 KB (added by MadtownLems, 8 years ago)

Basic removal of text and contextual help tab

  • tools.php

    1616        'title'   => __('Press This'),
    1717        'content' => '<p>' . __('Press This is a bookmarklet that makes it easy to blog about something you come across on the web. You can use it to just grab a link, or to post an excerpt. Press This will even allow you to choose from images included on the page and use them in your post. Just drag the Press This link on this screen to your bookmarks bar in your browser, and you&#8217;ll be on your way to easier content creation. Clicking on it while on another website opens a popup window with all these options.') . '</p>',
    1818) );
    19 get_current_screen()->add_help_tab( array(
    20         'id'      => 'converter',
    21         'title'   => __('Categories and Tags Converter'),
    22         'content' => '<p>' . __('Categories have hierarchy, meaning that you can nest sub-categories. Tags do not have hierarchy and cannot be nested. Sometimes people start out using one on their posts, then later realize that the other would work better for their content.' ) . '</p>' .
    23         '<p>' . __( 'The Categories and Tags Converter link on this screen will take you to the Import screen, where that Converter is one of the plugins you can install. Once that plugin is installed, the Activate Plugin &amp; Run Importer link will take you to a screen where you can choose to convert tags into categories or vice versa.' ) . '</p>',
    24 ) );
    2721        '<p><strong>' . __('For more information:') . '</strong></p>' .
    54 if ( current_user_can( 'import' ) ) :
    55 $cats = get_taxonomy('category');
    56 $tags = get_taxonomy('post_tag');
    57 if ( current_user_can($cats->cap->manage_terms) || current_user_can($tags->cap->manage_terms) ) : ?>
    58 <div class="tool-box">
    59     <h3 class="title"><?php _e( 'Categories and Tags Converter' ) ?></h3>
    60     <p><?php printf( __('If you want to convert your categories to tags (or vice versa), use the <a href="%s">Categories and Tags Converter</a> available from the Import screen.'), 'import.php' ); ?></p>
    61 </div>
    62 <?php
    63 endif;
    64 endif;
    6749 * Fires at the end of the Tools Administration screen.
    6850 *