WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/30/2015 01:27:09 PM (6 years ago)
Author:
boonebgorges
Message:

Fix db_version juggling during non-multisite tests.

Continuing with the "code is poetry" theme after [34719], we need to continue
to update the option in the database on non-multisite in this
wp_insert_term() test.

See #31130.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/testcase.php

    r34719 r34720  
    1414    protected static $hooks_saved = array();
    1515    protected static $ignore_files;
     16
     17    protected $db_version;
    1618
    1719    /**
     
    6567         * See #31130.
    6668         */
     69        $this->db_version = get_option( 'db_version' );
    6770        if ( is_multisite() ) {
    68             $this->db_version = get_option( 'db_version' );
    6971            add_filter( 'pre_option_db_version', array( $this, 'db_version' ) );
    7072        }
Note: See TracChangeset for help on using the changeset viewer.