Add 404 to disallowed cpt/term images

This commit is contained in:
Robin Cornett
2015-03-03 16:28:19 -05:00
parent be99d32171
commit e189ec78dd
2 changed files with 3 additions and 2 deletions
@@ -72,7 +72,7 @@ class Display_Featured_Image_Genesis_Common {
$object = get_queried_object();
// cpt
if ( is_main_query() && ( ! is_author() && ! is_admin() && ! is_search() ) ) {
if ( is_main_query() && ( ! is_author() && ! is_admin() && ! is_search() && ! is_404() ) ) {
if ( $object->name ) { // results in post type on cpt archive
$post_type = $object->name;
}