projects/plugins/jetpack/json-endpoints/class.wpcom-json-api-update-media-v1-1-endpoint.php 1 location
|
@@ 102-105 (lines=4) @@
|
99 |
|
$insert['post_parent'] = $input['parent_id']; |
100 |
|
} |
101 |
|
|
102 |
|
if ( isset( $input['alt'] ) ) { |
103 |
|
$alt = wp_strip_all_tags( $input['alt'], true ); |
104 |
|
update_post_meta( $media_id, '_wp_attachment_image_alt', $alt ); |
105 |
|
} |
106 |
|
|
107 |
|
// audio only artist/album info. |
108 |
|
if ( 0 === strpos( $item->mime_type, 'audio/' ) ) { |
projects/plugins/jetpack/class.json-api-endpoints.php 1 location
|
@@ 1929-1932 (lines=4) @@
|
1926 |
|
|
1927 |
|
// Attributes: Alt |
1928 |
|
|
1929 |
|
if ( isset( $attrs['alt'] ) ) { |
1930 |
|
$alt = wp_strip_all_tags( $attrs['alt'], true ); |
1931 |
|
update_post_meta( $media_id, '_wp_attachment_image_alt', $alt ); |
1932 |
|
} |
1933 |
|
|
1934 |
|
// Attributes: Artist, Album |
1935 |
|
|