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
|
@@ 1830-1834 (lines=5) @@
|
| 1827 |
|
|
| 1828 |
|
$id3_meta = array(); |
| 1829 |
|
|
| 1830 |
|
foreach ( array( 'artist', 'album' ) as $key ) { |
| 1831 |
|
if ( isset( $attrs[ $key ] ) ) { |
| 1832 |
|
$id3_meta[ $key ] = wp_strip_all_tags( $attrs[ $key ], true ); |
| 1833 |
|
} |
| 1834 |
|
} |
| 1835 |
|
|
| 1836 |
|
if ( ! empty( $id3_meta ) ) { |
| 1837 |
|
// Before updating metadata, ensure that the item is audio |