class.json-api-endpoints.php 1 location
|
@@ 1788-1792 (lines=5) @@
|
| 1785 |
|
|
| 1786 |
|
$id3_meta = array(); |
| 1787 |
|
|
| 1788 |
|
foreach ( array( 'artist', 'album' ) as $key ) { |
| 1789 |
|
if ( isset( $attrs[ $key ] ) ) { |
| 1790 |
|
$id3_meta[ $key ] = wp_strip_all_tags( $attrs[ $key ], true ); |
| 1791 |
|
} |
| 1792 |
|
} |
| 1793 |
|
|
| 1794 |
|
if ( ! empty( $id3_meta ) ) { |
| 1795 |
|
// Before updating metadata, ensure that the item is audio |
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 |