@@ 383-391 (lines=9) @@ | ||
380 | '<p>%s</p>', |
|
381 | $fail['resolution'] |
|
382 | ); |
|
383 | if ( ! empty( $fail['action'] ) ) { |
|
384 | $result['actions'] = sprintf( |
|
385 | '<a class="button button-primary" href="%1$s" target="_blank" rel="noopener noreferrer">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>', |
|
386 | esc_url( $fail['action'] ), |
|
387 | __( 'Resolve', 'jetpack' ), |
|
388 | /* translators: accessibility text */ |
|
389 | __( '(opens in a new tab)', 'jetpack' ) |
|
390 | ); |
|
391 | } |
|
392 | } else { |
|
393 | $result['description'] .= sprintf( |
|
394 | '<p>%s</p>', |
@@ 70-78 (lines=9) @@ | ||
67 | '<p>%s</p>', |
|
68 | $results['resolution'] |
|
69 | ); |
|
70 | if ( ! empty( $results['action'] ) ) { |
|
71 | $return['actions'] = sprintf( |
|
72 | '<a class="button button-primary" href="%1$s" target="_blank" rel="noopener noreferrer">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>', |
|
73 | esc_url( $results['action'] ), |
|
74 | __( 'Resolve', 'jetpack' ), |
|
75 | /* translators: accessibility text */ |
|
76 | __( '(opens in a new tab)', 'jetpack' ) |
|
77 | ); |
|
78 | } |
|
79 | } |
|
80 | ||
81 | return $return; |