Changeset 45711 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 08/01/2019 03:03:33 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/taxonomy.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r45710 r45711 1771 1771 1772 1772 if ( 'category' === $taxonomy ) { 1773 $defaults['default'] = get_option( 'default_category' );1773 $defaults['default'] = (int) get_option( 'default_category' ); 1774 1774 if ( $defaults['default'] === $term ) { 1775 1775 return 0; // Don't delete the default category … … 3542 3542 } 3543 3543 3544 if ( $term->parent === $term_id ) {3544 if ( (int) $term->parent === $term_id ) { 3545 3545 if ( $use_id ) { 3546 3546 $term_list[] = $term->term_id;
Note: See TracChangeset
for help on using the changeset viewer.