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
|
@@ 1730-1734 (lines=5) @@
|
1727 |
|
|
1728 |
|
$id3_meta = array(); |
1729 |
|
|
1730 |
|
foreach ( array( 'artist', 'album' ) as $key ) { |
1731 |
|
if ( isset( $attrs[ $key ] ) ) { |
1732 |
|
$id3_meta[ $key ] = wp_strip_all_tags( $attrs[ $key ], true ); |
1733 |
|
} |
1734 |
|
} |
1735 |
|
|
1736 |
|
if ( ! empty( $id3_meta ) ) { |
1737 |
|
// Before updating metadata, ensure that the item is audio |