diff --git a/src/wp-content/themes/twentyfourteen/inc/featured-content.php b/src/wp-content/themes/twentyfourteen/inc/featured-content.php index 3193aa8b93549..c9c59d51f0dbd 100644 --- a/src/wp-content/themes/twentyfourteen/inc/featured-content.php +++ b/src/wp-content/themes/twentyfourteen/inc/featured-content.php @@ -288,7 +288,7 @@ public static function delete_post_tag( $tag_id ) { public static function hide_featured_term( $terms, $taxonomies, $args ) { // This filter is only appropriate on the front end. - if ( is_admin() ) { + if ( is_admin() || ( function_exists( 'wp_is_serving_rest_request' ) && wp_is_serving_rest_request() ) ) { return $terms; } @@ -335,7 +335,7 @@ public static function hide_featured_term( $terms, $taxonomies, $args ) { public static function hide_the_featured_term( $terms, $id, $taxonomy ) { // This filter is only appropriate on the front end. - if ( is_admin() ) { + if ( is_admin() || ( function_exists( 'wp_is_serving_rest_request' ) && wp_is_serving_rest_request() ) ) { return $terms; }