Code Duplication    Length = 3-3 lines in 2 locations

modules/theme-tools/featured-content.php 2 locations

@@ 387-389 (lines=3) @@
384
		public static function hide_featured_term( $terms, $taxonomies, $args ) {
385
386
			// This filter is only appropriate on the front-end.
387
			if ( is_admin() || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) || ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) ) {
388
				return $terms;
389
			}
390
391
			// We only want to hide the featured tag.
392
			if ( ! in_array( 'post_tag', $taxonomies ) ) {
@@ 441-443 (lines=3) @@
438
		public static function hide_the_featured_term( $terms, $id, $taxonomy ) {
439
440
			// This filter is only appropriate on the front-end.
441
			if ( is_admin() || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) || ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) ) {
442
				return $terms;
443
			}
444
445
			// Make sure we are in the correct taxonomy.
446
			if ( 'post_tag' != $taxonomy ) {