Changeset 32659 for trunk/tests/phpunit/includes/factory.php
- Timestamp:
- 05/30/2015 01:03:07 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/includes/factory.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory.php
r27178 r32659 251 251 function add_post_terms( $post_id, $terms, $taxonomy, $append = true ) { 252 252 return wp_set_post_terms( $post_id, $terms, $taxonomy, $append ); 253 } 254 255 function create_and_get( $args = array(), $generation_definitions = null ) { 256 $term_id = $this->create( $args, $generation_definitions ); 257 $taxonomy = isset( $args['taxonomy'] ) ? $args['taxonomy'] : $this->taxonomy; 258 return get_term( $term_id, $taxonomy ); 253 259 } 254 260
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)