Changeset 43571 for trunk/src/wp-admin/tools.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/tools.php
r43203 r43571 20 20 } else { 21 21 22 $title = __( 'Tools');22 $title = __( 'Tools' ); 23 23 24 get_current_screen()->add_help_tab( array( 25 'id' => 'converter', 26 'title' => __('Categories and Tags Converter'), 27 '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>' . 28 '<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>', 29 ) ); 24 get_current_screen()->add_help_tab( 25 array( 26 'id' => 'converter', 27 'title' => __( 'Categories and Tags Converter' ), 28 '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>' . 29 '<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>', 30 ) 31 ); 30 32 31 33 get_current_screen()->set_help_sidebar( 32 '<p><strong>' . __( 'For more information:') . '</strong></p>' .33 '<p>' . __( '<a href="https://codex.wordpress.org/Tools_Screen">Documentation on Tools</a>') . '</p>' .34 '<p>' . __( '<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'34 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 35 '<p>' . __( '<a href="https://codex.wordpress.org/Tools_Screen">Documentation on Tools</a>' ) . '</p>' . 36 '<p>' . __( '<a href="https://wordpress.org/support/">Support Forums</a>' ) . '</p>' 35 37 ); 36 38 } … … 53 55 54 56 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) ) : ?> 57 $cats = get_taxonomy( 'category' ); 58 $tags = get_taxonomy( 'post_tag' ); 59 if ( current_user_can( $cats->cap->manage_terms ) || current_user_can( $tags->cap->manage_terms ) ) : 60 ?> 58 61 <div class="card"> 59 <h2 class="title"><?php _e( 'Categories and Tags Converter' ) ?></h2>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>62 <h2 class="title"><?php _e( 'Categories and Tags Converter' ); ?></h2> 63 <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 64 </div> 62 <?php65 <?php 63 66 endif; 64 67 endif;
Note: See TracChangeset
for help on using the changeset viewer.