Changeset 56637
- Timestamp:
- 09/20/2023 07:29:30 PM (15 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r56480 r56637 1068 1068 'metadata' => wp_get_attachment_metadata( $media_item->ID ), 1069 1069 'type' => $media_item->post_mime_type, 1070 'alt' => get_post_meta( $media_item->ID, '_wp_attachment_image_alt', true ), 1070 1071 ); 1071 1072 -
trunk/tests/phpunit/tests/xmlrpc/wp/getMediaItem.php
r52010 r56637 26 26 $this->attachment_id = $this->_make_attachment( $upload, self::$post_id ); 27 27 $this->attachment_data = get_post( $this->attachment_id, ARRAY_A ); 28 update_post_meta( $this->attachment_id, '_wp_attachment_image_alt', 'Waffle has alt text' ); 28 29 29 30 set_post_thumbnail( self::$post_id, $this->attachment_id ); … … 61 62 $this->assertIsString( $result['thumbnail'] ); 62 63 $this->assertIsArray( $result['metadata'] ); 64 $this->assertIsString( $result['alt'] ); 63 65 64 66 // Check expected values.
Note: See TracChangeset
for help on using the changeset viewer.