Make WordPress Core


Ignore:
Timestamp:
07/28/2020 03:40:35 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Taxonomy: Rename the default_taxonomy_$taxonomy option key to default_term_$taxonomy.

This better reflects the purpose of the option.

Follow-up to [48356], [48480].

See #43517.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r48664 r48665  
    40624062
    40634063                if ( empty( $postarr['tax_input'][ $taxonomy ] ) ) {
    4064                     $default_term_id = get_option( 'default_taxonomy_' . $taxonomy );
     4064                    $default_term_id = get_option( 'default_term_' . $taxonomy );
    40654065                    if ( ! empty( $default_term_id ) ) {
    40664066                        $postarr['tax_input'][ $taxonomy ] = array( (int) $default_term_id );
Note: See TracChangeset for help on using the changeset viewer.