class.json-api-endpoints.php 1 location
|
@@ 1709-1713 (lines=5) @@
|
| 1706 |
|
|
| 1707 |
|
$id3_meta = array(); |
| 1708 |
|
|
| 1709 |
|
foreach ( array( 'artist', 'album' ) as $key ) { |
| 1710 |
|
if ( isset( $attrs[ $key ] ) ) { |
| 1711 |
|
$id3_meta[ $key ] = wp_strip_all_tags( $attrs[ $key ], true ); |
| 1712 |
|
} |
| 1713 |
|
} |
| 1714 |
|
|
| 1715 |
|
if ( ! empty( $id3_meta ) ) { |
| 1716 |
|
// Before updating metadata, ensure that the item is audio |
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 |