Make WordPress Core

Ticket #44961: 44961.diff

File 44961.diff, 1.0 KB (added by Codestor, 7 years ago)

added a line to explain that default category cannot be deleted.

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

    diff --git a/src/wp-admin/edit-tags.php b/src/wp-admin/edit-tags.php
    index 5ab4cac567..af5316bdac 100644
    a b if ( current_user_can( $tax->cap->edit_terms ) ) { 
    583583        <?php
    584584        printf(
    585585                /* translators: %s: default category */
    586                 __( '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.' ),
     586                __( '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 default category %s. The default category cannot be deleted.' ),
    587587                /** This filter is documented in wp-includes/category-template.php */
    588                 '<strong>' . apply_filters( 'the_category', get_cat_name( get_option( 'default_category' ) ), '', '' ) . '</strong>'
     588                '<strong>' . apply_filters( 'the_category', get_cat_name( get_option( 'default_category' ) ), '', '' ) . '</strong>', esc_url( admin_url( 'options-writing.php' ) )
    589589        );
    590590        ?>
    591591</p>