json-endpoints/class.wpcom-json-api-update-media-v1-1-endpoint.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 39-42 (lines=4) @@ | 
                                                            
                                    | 36 |  | 			$insert['post_parent'] = $input['parent_id']; | 
                                                            
                                    | 37 |  | 		} | 
                                                            
                                    | 38 |  |  | 
                                                            
                                    | 39 |  | 		if ( isset( $input['alt'] ) ) { | 
                                                            
                                    | 40 |  | 			$alt = wp_strip_all_tags( $input['alt'], true ); | 
                                                            
                                    | 41 |  | 			update_post_meta( $media_id, '_wp_attachment_image_alt', $alt ); | 
                                                            
                                    | 42 |  | 		} | 
                                                            
                                    | 43 |  |  | 
                                                            
                                    | 44 |  | 		// audio only artist/album info | 
                                                            
                                    | 45 |  | 		if ( 0 === strpos( $item->mime_type, 'audio/' ) ) { | 
                                                                        
                 
                                                            
                    
class.json-api-endpoints.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 1750-1753 (lines=4) @@ | 
                                                            
                                    | 1747 |  |  | 
                                                            
                                    | 1748 |  | 				// Attributes: Alt | 
                                                            
                                    | 1749 |  |  | 
                                                            
                                    | 1750 |  | 				if ( isset( $attrs['alt'] ) ) { | 
                                                            
                                    | 1751 |  | 					$alt = wp_strip_all_tags( $attrs['alt'], true ); | 
                                                            
                                    | 1752 |  | 					update_post_meta( $media_id, '_wp_attachment_image_alt', $alt ); | 
                                                            
                                    | 1753 |  | 				} | 
                                                            
                                    | 1754 |  |  | 
                                                            
                                    | 1755 |  | 				// Attributes: Artist, Album | 
                                                            
                                    | 1756 |  |  |