sprintf( /* translators: %s: Post title. Only visible to screen readers. */
esc_html__( 'Edit %s', 'twentytwentyone'
),
'<span class="screen-reader-text">' .
get_the_title() . '</span>'
),
'<span class="edit-link">',
'</span>'
);
} // Retrieve attachment metadata.
$metadata =
wp_get_attachment_metadata();
if ( $metadata ) { printf( '<span class="full-size-link"><span class="screen-reader-text">%1$s</span><a href="%2$s">%3$s × %4$s</a></span>',
/* translators: Hidden accessibility text. */
esc_html_x( 'Full size', 'Used before full size attachment link.', 'twentytwentyone'
), // phpcs:ignore WordPress.Security.EscapeOutput
esc_url( wp_get_attachment_url() ),
absint( $metadata['width'
] ),
absint( $metadata['height'
] ) );
}