Switch escaping to aria-label and change text order. (#83)

This commit is contained in:
Joe Dolson 2025-06-12 12:20:33 -05:00 committed by GitHub
parent 8a7efe0ed2
commit 680f552cb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -404,7 +404,7 @@ if ( ! class_exists( 'Fragen\\Git_Updater\\Lite' ) ) {
'</a>',
sprintf(
/* translators: %s: theme name */
'<a aria-label="' . esc_html__( 'Update %s now', 'fair' ) . '" id="update-theme" data-slug="' . esc_attr( $theme->slug ) . '" href="' . esc_url( $nonced_update_url ) . '">',
'<a aria-label="' . esc_attr__( '%s: update now', 'fair' ) . '" id="update-theme" data-slug="' . esc_attr( $theme->slug ) . '" href="' . esc_url( $nonced_update_url ) . '">',
esc_attr( $theme->name )
)
);