json-endpoints/class.wpcom-json-api-edit-media-v1-2-endpoint.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 47-51 (lines=5) @@ | 
                                                            
                                    | 44 |  | 		// Attributes: Artist, Album | 
                                                            
                                    | 45 |  | 		$id3_meta = array(); | 
                                                            
                                    | 46 |  |  | 
                                                            
                                    | 47 |  | 		foreach ( array( 'artist', 'album' ) as $key ) { | 
                                                            
                                    | 48 |  | 			if ( isset( $attrs[ $key ] ) ) { | 
                                                            
                                    | 49 |  | 				$id3_meta[ $key ] = wp_strip_all_tags( $attrs[ $key ], true ); | 
                                                            
                                    | 50 |  | 			} | 
                                                            
                                    | 51 |  | 		} | 
                                                            
                                    | 52 |  |  | 
                                                            
                                    | 53 |  | 		if ( ! empty( $id3_meta ) ) { | 
                                                            
                                    | 54 |  | 			// Before updating metadata, ensure that the item is audio | 
                                                                        
                 
                                                            
                    
class.json-api-endpoints.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 1734-1738 (lines=5) @@ | 
                                                            
                                    | 1731 |  |  | 
                                                            
                                    | 1732 |  | 				$id3_meta = array(); | 
                                                            
                                    | 1733 |  |  | 
                                                            
                                    | 1734 |  | 				foreach ( array( 'artist', 'album' ) as $key ) { | 
                                                            
                                    | 1735 |  | 					if ( isset( $attrs[ $key ] ) ) { | 
                                                            
                                    | 1736 |  | 						$id3_meta[ $key ] = wp_strip_all_tags( $attrs[ $key ], true ); | 
                                                            
                                    | 1737 |  | 					} | 
                                                            
                                    | 1738 |  | 				} | 
                                                            
                                    | 1739 |  |  | 
                                                            
                                    | 1740 |  | 				if ( ! empty( $id3_meta ) ) { | 
                                                            
                                    | 1741 |  | 					// Before updating metadata, ensure that the item is audio |