@@ 421-429 (lines=9) @@ | ||
418 | '<p>%s</p>', |
|
419 | $fail['resolution'] |
|
420 | ); |
|
421 | if ( ! empty( $fail['action'] ) ) { |
|
422 | $result['actions'] = sprintf( |
|
423 | '<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>', |
|
424 | esc_url( $fail['action'] ), |
|
425 | __( 'Resolve', 'jetpack' ), |
|
426 | /* translators: accessibility text */ |
|
427 | __( '(opens in a new tab)', 'jetpack' ) |
|
428 | ); |
|
429 | } |
|
430 | } else { |
|
431 | $result['description'] .= sprintf( |
|
432 | '<p>%s</p>', |
@@ 84-92 (lines=9) @@ | ||
81 | ||
82 | if ( false === $results['pass'] ) { |
|
83 | $return['status'] = $results['severity']; |
|
84 | if ( ! empty( $results['action'] ) ) { |
|
85 | $return['actions'] = sprintf( |
|
86 | '<a 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>', |
|
87 | esc_url( $results['action'] ), |
|
88 | $results['action_label'], |
|
89 | /* translators: accessibility text */ |
|
90 | __( '(opens in a new tab)', 'jetpack' ) |
|
91 | ); |
|
92 | } |
|
93 | } |
|
94 | ||
95 | return $return; |