Make WordPress Core


Ignore:
Timestamp:
05/27/2019 02:39:46 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Remove reinstated wp-admin/options-privacy.php from $_old_files.

Fix WPCS violations in [45448].

See #43895.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/tools.php

    r45448 r45453  
    6161<?php
    6262
    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                         <?php
     63if ( 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
    7373        endif;
    74         endif;
     74endif;
    7575
    76         /**
    77         * Fires at the end of the Tools Administration screen.
    78         *
    79         * @since 2.8.0
    80         */
    81         do_action( 'tool_box' );
     76/**
     77 * Fires at the end of the Tools Administration screen.
     78 *
     79 * @since 2.8.0
     80 */
     81do_action( 'tool_box' );
    8282
    8383?>
Note: See TracChangeset for help on using the changeset viewer.