query['post_type'] ) && 'attachment' === $query->query['post_type'] ) { $query->set( 'suppress_filters', false ); } return $query; } }