| @@ -15,12 +15,8 @@ | ||
| 15 | 15 | * |
| 16 | 16 | * Currently supported are: |
| 17 | 17 | * |
| 18 | 18 | * - Activitypub\Activity\Base_Object |
| 19 | - * | |
| 20 | - * Redaction is inherited from {@see Post::is_redacted()}: `is_post_publicly_queryable()` | |
| 21 | - * already resolves an attachment's own visibility, password, post-type support, and — for | |
| 22 | - * attached media — its parent's visibility, so no attachment-specific override is needed. | |
| 23 | 19 | */ |
| 24 | 20 | class Attachment extends Post { |
| 25 | 21 | /** |
| 26 | 22 | * Generates all Media Attachments for a Post. |
| @@ -45,9 +41,9 @@ | ||
| 45 | 41 | } |
| 46 | 42 | |
| 47 | 43 | $attachment = array( |
| 48 | 44 | 'type' => $type, |
| 49 | - 'url' => \wp_get_attachment_url( $this->item->ID ), | |
| 45 | + 'url' => wp_get_attachment_url( $this->item->ID ), | |
| 50 | 46 | 'mediaType' => $mime_type, |
| 51 | 47 | ); |
| 52 | 48 | |
| 53 | 49 | $alt = \get_post_meta( $this->item->ID, '_wp_attachment_image_alt', true ); |