Code Duplication    Length = 7-7 lines in 3 locations

classes/wordpress.php 3 locations

@@ 1899-1905 (lines=7) @@
1896
1897
		}
1898
1899
		if ( is_wp_error( $term ) ) {
1900
			$success = false;
1901
			$errors  = $term;
1902
		} else {
1903
			$success = true;
1904
			$errors  = array();
1905
		}
1906
1907
		$result = array(
1908
			'data'   => array(
@@ 2116-2122 (lines=7) @@
2113
2114
		}
2115
2116
		if ( is_wp_error( $term ) ) {
2117
			$success = false;
2118
			$errors  = $term;
2119
		} else {
2120
			$success = true;
2121
			$errors  = array();
2122
		}
2123
2124
		$result = array(
2125
			'data'   => array(
@@ 2468-2474 (lines=7) @@
2465
2466
		}
2467
2468
		if ( is_wp_error( $updated ) ) {
2469
			$success = false;
2470
			$errors  = $updated;
2471
		} else {
2472
			$success = true;
2473
			$errors  = array();
2474
		}
2475
2476
		$result = array(
2477
			'data'   => array(