Make WordPress Core


Ignore:
Timestamp:
06/11/2018 05:54:19 PM (6 years ago)
Author:
flixos90
Message:

REST API: Improve test coverage by providing tests for term meta.

See #38323.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-post-meta-fields.php

    r42724 r43340  
    1515
    1616    public static function wpSetUpBeforeClass( $factory ) {
    17         self::$wp_meta_keys_saved = $GLOBALS['wp_meta_keys'];
     17        self::$wp_meta_keys_saved = isset( $GLOBALS['wp_meta_keys'] ) ? $GLOBALS['wp_meta_keys'] : array();
    1818        self::$post_id            = $factory->post->create();
    1919    }
Note: See TracChangeset for help on using the changeset viewer.