Ticket #27957: 27957-2.patch
File 27957-2.patch, 2.2 KB (added by , 11 years ago) |
---|
-
wp-admin/tools.php
16 16 'title' => __('Press This'), 17 17 '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’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>', 18 18 ) ); 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 & Run Importer link will take you to a screen where you can choose to convert tags into categories or vice versa.' ) . '</p>',24 ) );25 19 26 20 get_current_screen()->set_help_sidebar( 27 21 '<p><strong>' . __('For more information:') . '</strong></p>' . … … 51 45 <?php 52 46 endif; 53 47 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 <?php63 endif;64 endif;65 66 48 /** 67 49 * Fires at the end of the Tools Administration screen. 68 50 *