Ticket #42486: 42486-tools.php.patch
| File 42486-tools.php.patch, 856 bytes (added by , 8 years ago) |
|---|
-
tools.php
9 9 /** WordPress Administration Bootstrap */ 10 10 require_once( dirname( __FILE__ ) . '/admin.php' ); 11 11 12 if ( ! current_user_can('import') ) 13 wp_die( __( 'Sorry, you are not allowed to access this page.' ) ); 14 12 15 $title = __('Tools'); 13 16 14 17 get_current_screen()->add_help_tab( array( … … 30 33 <div class="wrap"> 31 34 <h1><?php echo esc_html( $title ); ?></h1> 32 35 <?php 33 if ( current_user_can( 'import' ) ) :34 36 $cats = get_taxonomy('category'); 35 37 $tags = get_taxonomy('post_tag'); 36 38 if ( current_user_can($cats->cap->manage_terms) || current_user_can($tags->cap->manage_terms) ) : ?> … … 40 42 </div> 41 43 <?php 42 44 endif; 43 endif;44 45 45 46 /** 46 47 * Fires at the end of the Tools Administration screen.