humanmade/altis-cloud

Remove `<abbr>` from Altis link

Opened this issue · 0 comments

Originally reported in humanmade/altis-cms#629

<abbr> is not an allowed element inside a link, see MDN on links

Code referenced:

$envs = [
'local' => esc_html_x( 'local', 'Server environment type', 'altis' ),
'development' => sprintf( '<abbr title="%s">%s</abbr>',
esc_attr_x( 'development', 'Server environment type - full form', 'altis' ),
esc_html_x( 'dev', 'Server environment type - abbreviated', 'altis' )
),
'staging' => esc_html_x( 'staging', 'Server environment type', 'altis' ),
'production' => sprintf( '<abbr title="%s">%s</abbr>',
esc_attr_x( 'production', 'Server environment type - full form', 'altis' ),
esc_html_x( 'prod', 'Server environment type - abbreviated', 'altis' )
),
];

Acceptance criteria:

  • Remove the <abbr> element from the link being displayed.
  • have the appropriate link title matching the environment.