Make WordPress Core

Ticket #43800: 43800.5.diff

File 43800.5.diff, 1.3 KB (added by joanrho, 6 years ago)

Apologies for the confusion: I had mistakenly edited the wrong edit-tags.php file under "build" instead of "src" so my changes weren't shown in my previous attachment. Please test this diff instead.

  • src/wp-admin/edit-tags.php

    diff --git a/src/wp-admin/edit-tags.php b/src/wp-admin/edit-tags.php
    index b0827af69a..3087448fda 100644
    a b if ( current_user_can( $tax->cap->edit_terms ) ) { 
    581581<div class="form-wrap edit-term-notes">
    582582<p>
    583583        <?php
    584         echo '<strong>' . __( 'Note:' ) . '</strong><br />';
     584        echo '<strong>' . __( 'Note:' ) . '</strong> ';
    585585        printf(
    586586                /* translators: %s: default category */
    587587                __( 'Deleting a category does not delete the posts in that category. Instead, posts that were only assigned to the deleted category are set to the category %s.' ),
    if ( current_user_can( $tax->cap->edit_terms ) ) { 
    589589                '<strong>' . apply_filters( 'the_category', get_cat_name( get_option( 'default_category' ) ), '', '' ) . '</strong>'
    590590        );
    591591        ?>
    592 </p>
    593592        <?php if ( current_user_can( 'import' ) ) : ?>
    594 <p><?php printf( __( 'Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.' ), esc_url( $import_link ) ); ?></p>
     593                <?php printf( __( 'Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.' ), esc_url( $import_link ) ); ?>
    595594        <?php endif; ?>
     595</p>
    596596</div>
    597597<?php elseif ( 'post_tag' == $taxonomy && current_user_can( 'import' ) ) : ?>
    598598<div class="form-wrap edit-term-notes">