WordPress.org

Make WordPress Core

Ticket #43743: 43743.diff

File 43743.diff, 1.0 KB (added by mathieuhays, 3 years ago)
  • src/wp-admin/edit-tags.php

     
    351351
    352352</form>
    353353
     354<?php
     355
     356$has_2_columns_layout = current_user_can( $tax->cap->edit_terms );
     357
     358if ( $has_2_columns_layout ) {
     359?>
    354360<div id="col-container" class="wp-clearfix">
    355361
    356362<div id="col-left">
    357363<div class="col-wrap">
    358364
    359365<?php
     366}
    360367
    361368if ( current_user_can( $tax->cap->edit_terms ) ) {
    362369        if ( 'category' == $taxonomy ) {
     
    558565</form></div>
    559566<?php } ?>
    560567
     568<?php if ( $has_2_columns_layout ) { ?>
    561569</div>
    562570</div><!-- /col-left -->
    563571
    564572<div id="col-right">
    565573<div class="col-wrap">
     574<?php } ?>
    566575
    567576<?php $wp_list_table->views(); ?>
    568577
     
    610619do_action( "after-{$taxonomy}-table", $taxonomy );
    611620?>
    612621
     622<?php if ( $has_2_columns_layout ) { ?>
    613623</div>
    614624</div><!-- /col-right -->
    615625
    616626</div><!-- /col-container -->
     627<?php } ?>
     628
    617629</div><!-- /wrap -->
    618630
    619631<?php if ( ! wp_is_mobile() ) : ?>