Changeset 48664 for trunk/src/wp-includes/capabilities.php
- Timestamp:
- 07/28/2020 02:40:06 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r48356 r48664 540 540 } 541 541 542 if ( 'delete_term' === $cap && ( get_option( 'default_' . $term->taxonomy ) == $term->term_id || get_option( 'default_taxonomy_' . $term->taxonomy ) == $term->term_id ) ) { 542 if ( 'delete_term' === $cap 543 && ( get_option( 'default_' . $term->taxonomy ) == $term->term_id 544 || get_option( 'default_taxonomy_' . $term->taxonomy ) == $term->term_id ) 545 ) { 543 546 $caps[] = 'do_not_allow'; 544 547 break;
Note: See TracChangeset
for help on using the changeset viewer.