WordPress.org

Make WordPress Core

Ticket #30261: 30261.4.diff

File 30261.4.diff, 534 bytes (added by boonebgorges, 4 years ago)
  • src/wp-includes/taxonomy.php

    diff --git src/wp-includes/taxonomy.php src/wp-includes/taxonomy.php
    index c2d0acc..2afa998 100644
    function _split_shared_term( $term_id, $term_taxonomy_id, $record = true ) { 
    42514251
    42524252        // Don't try to split terms if database schema does not support shared slugs.
    42534253        $current_db_version = get_option( 'db_version' );
    4254         if ( $current_db_version < 30133 ) {
     4254        if ( $current_db_version < 30133 && ! defined( 'WP_INSTALLING' ) ) {
    42554255                return $term_id;
    42564256        }
    42574257