json-endpoints/class.wpcom-json-api-update-media-v1-1-endpoint.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 96-99 (lines=4) @@ | 
                                                            
                                    | 93 |  | 			$insert['post_parent'] = $input['parent_id']; | 
                                                            
                                    | 94 |  | 		} | 
                                                            
                                    | 95 |  |  | 
                                                            
                                    | 96 |  | 		if ( isset( $input['alt'] ) ) { | 
                                                            
                                    | 97 |  | 			$alt = wp_strip_all_tags( $input['alt'], true ); | 
                                                            
                                    | 98 |  | 			update_post_meta( $media_id, '_wp_attachment_image_alt', $alt ); | 
                                                            
                                    | 99 |  | 		} | 
                                                            
                                    | 100 |  |  | 
                                                            
                                    | 101 |  | 		// audio only artist/album info | 
                                                            
                                    | 102 |  | 		if ( 0 === strpos( $item->mime_type, 'audio/' ) ) { | 
                                                                        
                 
                                                            
                    
class.json-api-endpoints.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 1848-1851 (lines=4) @@ | 
                                                            
                                    | 1845 |  |  | 
                                                            
                                    | 1846 |  | 				// Attributes: Alt | 
                                                            
                                    | 1847 |  |  | 
                                                            
                                    | 1848 |  | 				if ( isset( $attrs['alt'] ) ) { | 
                                                            
                                    | 1849 |  | 					$alt = wp_strip_all_tags( $attrs['alt'], true ); | 
                                                            
                                    | 1850 |  | 					update_post_meta( $media_id, '_wp_attachment_image_alt', $alt ); | 
                                                            
                                    | 1851 |  | 				} | 
                                                            
                                    | 1852 |  |  | 
                                                            
                                    | 1853 |  | 				// Attributes: Artist, Album | 
                                                            
                                    | 1854 |  |  |