- Timestamp:
- 09/23/2019 06:54:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-term.php
r44903 r46262 86 86 public function create_and_get( $args = array(), $generation_definitions = null ) { 87 87 $term_id = $this->create( $args, $generation_definitions ); 88 89 if ( is_wp_error( $term_id ) ) { 90 return $term_id; 91 } 92 88 93 $taxonomy = isset( $args['taxonomy'] ) ? $args['taxonomy'] : $this->taxonomy; 89 94 return get_term( $term_id, $taxonomy );
Note: See TracChangeset
for help on using the changeset viewer.