Taxonomies: Improve description of default category behaviour.

Add some extra information to the Categories list screen, explaining why the default category doesn't have a Delete button.

Props Codestor.
Fixes #44961.


Built from https://develop.svn.wordpress.org/trunk@43666


git-svn-id: http://core.svn.wordpress.org/trunk@43495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2018-10-02 19:19:24 +00:00
parent cac46a4e1b
commit 20d3238eaa
2 changed files with 2 additions and 2 deletions

View File

@ -583,7 +583,7 @@ if ( current_user_can( $tax->cap->edit_terms ) ) {
<?php
printf(
/* translators: %s: default category */
__( '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.' ),
__( '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.' ),
/** This filter is documented in wp-includes/category-template.php */
'<strong>' . apply_filters( 'the_category', get_cat_name( get_option( 'default_category' ) ), '', '' ) . '</strong>'
);

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-alpha-43665';
$wp_version = '5.0-alpha-43666';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.