Changeset 45453 for trunk/src/wp-admin/tools.php
- Timestamp:
- 05/27/2019 02:39:46 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/tools.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/tools.php
r45448 r45453 61 61 <?php 62 62 63 if ( current_user_can( 'import' ) ) :64 $cats = get_taxonomy( 'category' );65 $tags = get_taxonomy( 'post_tag' );66 if ( current_user_can( $cats->cap->manage_terms ) || current_user_can( $tags->cap->manage_terms ) ) :67 ?>68 <div class="card">69 <h2 class="title"><?php _e( 'Categories and Tags Converter' ); ?></h2>70 <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>71 </div>72 <?php63 if ( current_user_can( 'import' ) ) : 64 $cats = get_taxonomy( 'category' ); 65 $tags = get_taxonomy( 'post_tag' ); 66 if ( current_user_can( $cats->cap->manage_terms ) || current_user_can( $tags->cap->manage_terms ) ) : 67 ?> 68 <div class="card"> 69 <h2 class="title"><?php _e( 'Categories and Tags Converter' ); ?></h2> 70 <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> 71 </div> 72 <?php 73 73 endif; 74 endif;74 endif; 75 75 76 /**77 * Fires at the end of the Tools Administration screen.78 *79 * @since 2.8.080 */81 do_action( 'tool_box' );76 /** 77 * Fires at the end of the Tools Administration screen. 78 * 79 * @since 2.8.0 80 */ 81 do_action( 'tool_box' ); 82 82 83 83 ?>
Note: See TracChangeset
for help on using the changeset viewer.