Changeset 48356 for trunk/src/wp-includes/capabilities.php
- Timestamp:
- 07/07/2020 12:53:41 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/capabilities.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r48167 r48356 540 540 } 541 541 542 if ( 'delete_term' === $cap && ( get_option( 'default_' . $term->taxonomy ) == $term->term_id ) ) {542 if ( 'delete_term' === $cap && ( get_option( 'default_' . $term->taxonomy ) == $term->term_id || get_option( 'default_taxonomy_' . $term->taxonomy ) == $term->term_id ) ) { 543 543 $caps[] = 'do_not_allow'; 544 544 break;
Note: See TracChangeset
for help on using the changeset viewer.