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
|
@@ 1759-1763 (lines=5) @@
|
| 1756 |
|
|
| 1757 |
|
$id3_meta = array(); |
| 1758 |
|
|
| 1759 |
|
foreach ( array( 'artist', 'album' ) as $key ) { |
| 1760 |
|
if ( isset( $attrs[ $key ] ) ) { |
| 1761 |
|
$id3_meta[ $key ] = wp_strip_all_tags( $attrs[ $key ], true ); |
| 1762 |
|
} |
| 1763 |
|
} |
| 1764 |
|
|
| 1765 |
|
if ( ! empty( $id3_meta ) ) { |
| 1766 |
|
// Before updating metadata, ensure that the item is audio |