mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Media: Properly escape Download row action link in Media List Table.
Props joedolson, pbiron, audrasjb. Fixes #57574. git-svn-id: https://develop.svn.wordpress.org/trunk@55221 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ca76a8d907
commit
d90afeeb69
@ -852,7 +852,7 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||
|
||||
$actions['download'] = sprintf(
|
||||
'<a href="%s" aria-label="%s" download>%s</a>',
|
||||
wp_get_attachment_url( $post->ID ),
|
||||
esc_url( wp_get_attachment_url( $post->ID ) ),
|
||||
/* translators: %s: Attachment title. */
|
||||
esc_attr( sprintf( __( 'Download “%s”' ), $att_title ) ),
|
||||
__( 'Download file' )
|
||||
|
||||
Loading…
Reference in New Issue
Block a user