Coding Standards: Fix WPCS issue in [46262].
See #47952. git-svn-id: https://develop.svn.wordpress.org/trunk@46266 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
06868d4d12
commit
f29fdab426
@ -84,7 +84,7 @@ class WP_UnitTest_Factory_For_Term extends WP_UnitTest_Factory_For_Thing {
|
|||||||
* @return null|WP_Error|WP_Term WP_Term on success. WP_error if taxonomy does not exist. Null for miscellaneous failure.
|
* @return null|WP_Error|WP_Term WP_Term on success. WP_error if taxonomy does not exist. Null for miscellaneous failure.
|
||||||
*/
|
*/
|
||||||
public function create_and_get( $args = array(), $generation_definitions = null ) {
|
public function create_and_get( $args = array(), $generation_definitions = null ) {
|
||||||
$term_id = $this->create( $args, $generation_definitions );
|
$term_id = $this->create( $args, $generation_definitions );
|
||||||
|
|
||||||
if ( is_wp_error( $term_id ) ) {
|
if ( is_wp_error( $term_id ) ) {
|
||||||
return $term_id;
|
return $term_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user