diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php
index 0eeeaea..e695054 100644
--- a/src/wp-admin/includes/media.php
+++ b/src/wp-admin/includes/media.php
@@ -2686,17 +2686,20 @@ function edit_form_image_editor( $post ) {
 	endif; ?>
 	</div>
 	<div class="wp_attachment_details edit-form-section">
+	<?php if ( post_type_supports('attachment', 'caption') ) { ?>
 		<p>
 			<label for="attachment_caption"><strong><?php _e( 'Caption' ); ?></strong></label><br />
 			<textarea class="widefat" name="excerpt" id="attachment_caption"><?php echo $post->post_excerpt; ?></textarea>
 		</p>
-
-
+	<?php } ?>
+	<!-- above line to close post type check-->
 	<?php if ( 'image' === substr( $post->post_mime_type, 0, 5 ) ) : ?>
 		<p>
+		<?php if ( post_type_supports('attachment', 'alt') ) { ?>
 			<label for="attachment_alt"><strong><?php _e( 'Alternative Text' ); ?></strong></label><br />
 			<input type="text" class="widefat" name="_wp_attachment_image_alt" id="attachment_alt" value="<?php echo esc_attr( $alt_text ); ?>" />
 		</p>
+		<?php } ?>
 	<?php endif; ?>
 
 	<?php
@@ -2709,13 +2712,13 @@ function edit_form_image_editor( $post ) {
 			'quicktags' => $quicktags_settings,
 		);
 	?>
-
+	<?php if ( post_type_supports('attachment', 'description') ) { ?>
 	<label for="content"><strong><?php _e( 'Description' ); ?></strong><?php
 	if ( preg_match( '#^(audio|video)/#', $post->post_mime_type ) ) {
 		echo ': ' . __( 'Displayed on attachment pages.' );
 	} ?></label>
 	<?php wp_editor( $post->post_content, 'attachment_content', $editor_args ); ?>
-
+	<?php } ?>
 	</div>
 	<?php
 	$extras = get_compat_media_markup( $post->ID );
diff --git a/src/wp-content/themes/twentyfifteen/functions.php b/src/wp-content/themes/twentyfifteen/functions.php
index 776f06a..59b908e 100644
--- a/src/wp-content/themes/twentyfifteen/functions.php
+++ b/src/wp-content/themes/twentyfifteen/functions.php
@@ -310,6 +310,21 @@ function twentyfifteen_nav_description( $item_output, $item, $depth, $args ) {
 }
 add_filter( 'walker_nav_menu_start_el', 'twentyfifteen_nav_description', 10, 4 );
 
+
+
+
+add_action( 'init' , 'my_remove_post_type_support' , 10 );
+function my_remove_post_type_support() {
+remove_post_type_support( 'attachment', 'caption' );
+remove_post_type_support( 'attachment', 'title' );
+remove_post_type_support( 'attachment', 'description' );
+remove_post_type_support( 'attachment', 'alt' );
+
+
+//global $_wp_post_type_features;
+//print_r($_wp_post_type_features);
+}
+
 /**
  * Implement the Custom Header feature.
  *
diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php
index 1c7749a..366c601 100644
--- a/src/wp-includes/media-template.php
+++ b/src/wp-includes/media-template.php
@@ -361,10 +361,12 @@ function wp_print_media_templates() {
 					<input type="text" value="{{ data.url }}" readonly />
 				</label>
 				<# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #>
+					<?php if ( post_type_supports('attachment', 'title') ) { ?>
 				<label class="setting" data-setting="title">
 					<span class="name"><?php _e('Title'); ?></span>
 					<input type="text" value="{{ data.title }}" {{ maybeReadOnly }} />
 				</label>
+				<?php } ?>
 				<# if ( 'audio' === data.type ) { #>
 				<?php foreach ( array(
 					'artist' => __( 'Artist' ),
@@ -376,20 +378,26 @@ function wp_print_media_templates() {
 				</label>
 				<?php endforeach; ?>
 				<# } #>
+					<?php if ( post_type_supports( 'attachment', 'caption') ) { ?>
 				<label class="setting" data-setting="caption">
 					<span class="name"><?php _e( 'Caption' ); ?></span>
 					<textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea>
 				</label>
+					<?php } ?>
 				<# if ( 'image' === data.type ) { #>
+					<?php if ( post_type_supports('attachment', 'alt') ) { ?>
 					<label class="setting" data-setting="alt">
 						<span class="name"><?php _e( 'Alt Text' ); ?></span>
 						<input type="text" value="{{ data.alt }}" {{ maybeReadOnly }} />
 					</label>
+					<?php } ?>
 				<# } #>
+					<?php if ( post_type_supports('attachment', 'description') ) { ?>
 				<label class="setting" data-setting="description">
 					<span class="name"><?php _e('Description'); ?></span>
 					<textarea {{ maybeReadOnly }}>{{ data.description }}</textarea>
 				</label>
+				<?php } ?>
 				<label class="setting">
 					<span class="name"><?php _e( 'Uploaded By' ); ?></span>
 					<span class="value">{{ data.authorName }}</span>
@@ -540,10 +548,12 @@ function wp_print_media_templates() {
 			<input type="text" value="{{ data.url }}" readonly />
 		</label>
 		<# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #>
+		<?php if ( post_type_supports('attachment', 'title') ) { ?>
 		<label class="setting" data-setting="title">
 			<span class="name"><?php _e('Title'); ?></span>
 			<input type="text" value="{{ data.title }}" {{ maybeReadOnly }} />
 		</label>
+		<?php } ?>
 		<# if ( 'audio' === data.type ) { #>
 		<?php foreach ( array(
 			'artist' => __( 'Artist' ),
@@ -555,20 +565,26 @@ function wp_print_media_templates() {
 		</label>
 		<?php endforeach; ?>
 		<# } #>
+		<?php if ( post_type_supports('attachment', 'caption') ) { ?>
 		<label class="setting" data-setting="caption">
 			<span class="name"><?php _e('Caption'); ?></span>
 			<textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea>
 		</label>
+		<?php } ?>
 		<# if ( 'image' === data.type ) { #>
+		<?php if ( post_type_supports('attachment', 'alt') ) { ?>
 			<label class="setting" data-setting="alt">
 				<span class="name"><?php _e('Alt Text'); ?></span>
 				<input type="text" value="{{ data.alt }}" {{ maybeReadOnly }} />
 			</label>
+			<?php } ?>
 		<# } #>
+		<?php if ( post_type_supports('attachment', 'description') ) { ?>
 		<label class="setting" data-setting="description">
 			<span class="name"><?php _e('Description'); ?></span>
 			<textarea {{ maybeReadOnly }}>{{ data.description }}</textarea>
 		</label>
+		<?php } ?>
 	</script>
 
 	<script type="text/html" id="tmpl-media-selection">
@@ -878,17 +894,19 @@ function wp_print_media_templates() {
 					<?php
 					/** This filter is documented in wp-admin/includes/media.php */
 					if ( ! apply_filters( 'disable_captions', '' ) ) : ?>
+						<?php if ( post_type_supports('attachment', 'caption') ) { ?>
 						<label class="setting caption">
 							<span><?php _e('Caption'); ?></span>
 							<textarea data-setting="caption">{{ data.model.caption }}</textarea>
 						</label>
+						<?php } ?>
 					<?php endif; ?>
-
+					<?php if ( post_type_supports('attachment', 'alt') ) { ?>
 					<label class="setting alt-text">
 						<span><?php _e('Alternative Text'); ?></span>
 						<input type="text" data-setting="alt" value="{{ data.model.alt }}" />
 					</label>
-
+					<?php } ?>
 					<h3><?php _e( 'Display Settings' ); ?></h3>
 					<div class="setting align">
 						<span><?php _e('Align'); ?></span>
diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
index e9d9317..70149ac 100644
--- a/src/wp-includes/post.php
+++ b/src/wp-includes/post.php
@@ -72,7 +72,7 @@ function create_initial_post_types() {
 		'query_var' => false,
 		'show_in_nav_menus' => false,
 		'delete_with_user' => true,
-		'supports' => array( 'title', 'author', 'comments' ),
+		'supports' => array( 'title', 'author', 'comments', 'caption', 'description', 'alt' ),
 	) );
 	add_post_type_support( 'attachment:audio', 'thumbnail' );
 	add_post_type_support( 'attachment:video', 'thumbnail' );
