Make WordPress Core

Ticket #42486: 42486-tools.php.patch

File 42486-tools.php.patch, 856 bytes (added by janak007, 8 years ago)
  • tools.php

     
    99/** WordPress Administration Bootstrap */
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
     12if ( ! current_user_can('import') )
     13        wp_die( __( 'Sorry, you are not allowed to access this page.' ) );
     14
    1215$title = __('Tools');
    1316
    1417get_current_screen()->add_help_tab( array(
     
    3033<div class="wrap">
    3134<h1><?php echo esc_html( $title ); ?></h1>
    3235<?php
    33 if ( current_user_can( 'import' ) ) :
    3436$cats = get_taxonomy('category');
    3537$tags = get_taxonomy('post_tag');
    3638if ( current_user_can($cats->cap->manage_terms) || current_user_can($tags->cap->manage_terms) ) : ?>
     
    4042</div>
    4143<?php
    4244endif;
    43 endif;
    4445
    4546/**
    4647 * Fires at the end of the Tools Administration screen.