Changeset 48664
- Timestamp:
- 07/28/2020 02:40:06 PM (4 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 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; -
trunk/src/wp-includes/post.php
r48658 r48664 4055 4055 } 4056 4056 4057 // Passed custom taxonomy list overwrites existing list if not empty.4057 // Passed custom taxonomy list overwrites the existing list if not empty. 4058 4058 $terms = wp_get_object_terms( $post_ID, $taxonomy, array( 'fields' => 'ids' ) ); 4059 4059 if ( ! empty( $terms ) && empty( $postarr['tax_input'][ $taxonomy ] ) ) { -
trunk/src/wp-includes/taxonomy.php
r48658 r48664 456 456 ); 457 457 458 // Update term idin options.458 // Update `term_id` in options. 459 459 if ( ! is_wp_error( $term ) ) { 460 460 update_option( 'default_taxonomy_' . $taxonomy_object->name, $term['term_id'] );
Note: See TracChangeset
for help on using the changeset viewer.