json-endpoints/class.wpcom-json-api-edit-media-v1-2-endpoint.php 1 location
|
@@ 119-123 (lines=5) @@
|
116 |
|
// Attributes: Artist, Album |
117 |
|
$id3_meta = array(); |
118 |
|
|
119 |
|
foreach ( array( 'artist', 'album' ) as $key ) { |
120 |
|
if ( isset( $attrs[ $key ] ) ) { |
121 |
|
$id3_meta[ $key ] = wp_strip_all_tags( $attrs[ $key ], true ); |
122 |
|
} |
123 |
|
} |
124 |
|
|
125 |
|
if ( ! empty( $id3_meta ) ) { |
126 |
|
// Before updating metadata, ensure that the item is audio |
class.json-api-endpoints.php 1 location
|
@@ 1821-1825 (lines=5) @@
|
1818 |
|
|
1819 |
|
$id3_meta = array(); |
1820 |
|
|
1821 |
|
foreach ( array( 'artist', 'album' ) as $key ) { |
1822 |
|
if ( isset( $attrs[ $key ] ) ) { |
1823 |
|
$id3_meta[ $key ] = wp_strip_all_tags( $attrs[ $key ], true ); |
1824 |
|
} |
1825 |
|
} |
1826 |
|
|
1827 |
|
if ( ! empty( $id3_meta ) ) { |
1828 |
|
// Before updating metadata, ensure that the item is audio |