json-endpoints/class.wpcom-json-api-edit-media-v1-2-endpoint.php 1 location
|
@@ 145-149 (lines=5) @@
|
142 |
|
// Attributes: Artist, Album |
143 |
|
$id3_meta = array(); |
144 |
|
|
145 |
|
foreach ( array( 'artist', 'album' ) as $key ) { |
146 |
|
if ( isset( $attrs[ $key ] ) ) { |
147 |
|
$id3_meta[ $key ] = wp_strip_all_tags( $attrs[ $key ], true ); |
148 |
|
} |
149 |
|
} |
150 |
|
|
151 |
|
if ( ! empty( $id3_meta ) ) { |
152 |
|
// Before updating metadata, ensure that the item is audio |
class.json-api-endpoints.php 1 location
|
@@ 1915-1919 (lines=5) @@
|
1912 |
|
|
1913 |
|
$id3_meta = array(); |
1914 |
|
|
1915 |
|
foreach ( array( 'artist', 'album' ) as $key ) { |
1916 |
|
if ( isset( $attrs[ $key ] ) ) { |
1917 |
|
$id3_meta[ $key ] = wp_strip_all_tags( $attrs[ $key ], true ); |
1918 |
|
} |
1919 |
|
} |
1920 |
|
|
1921 |
|
if ( ! empty( $id3_meta ) ) { |
1922 |
|
// Before updating metadata, ensure that the item is audio |