Skip to content

Commit

Permalink
Coding Standards: Fix WPCS issue in [46262].
Browse files Browse the repository at this point in the history
See #47952.

git-svn-id: https://develop.svn.wordpress.org/trunk@46266 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Sep 23, 2019
1 parent 06868d4 commit f29fdab
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -84,7 +84,7 @@ public function add_post_terms( $post_id, $terms, $taxonomy, $append = true ) {
* @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;
Expand Down

0 comments on commit f29fdab

Please sign in to comment.