@@ 409-417 (lines=9) @@ | ||
406 | '<p>%s</p>', |
|
407 | $fail['resolution'] |
|
408 | ); |
|
409 | if ( ! empty( $fail['action'] ) ) { |
|
410 | $result['actions'] = sprintf( |
|
411 | '<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>', |
|
412 | esc_url( $fail['action'] ), |
|
413 | __( 'Resolve', 'jetpack' ), |
|
414 | /* translators: accessibility text */ |
|
415 | __( '(opens in a new tab)', 'jetpack' ) |
|
416 | ); |
|
417 | } |
|
418 | } else { |
|
419 | $result['description'] .= sprintf( |
|
420 | '<p>%s</p>', |
@@ 82-90 (lines=9) @@ | ||
79 | } |
|
80 | ||
81 | $return['status'] = $results['severity']; |
|
82 | if ( ! empty( $results['action'] ) ) { |
|
83 | $return['actions'] = sprintf( |
|
84 | '<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>', |
|
85 | esc_url( $results['action'] ), |
|
86 | $results['action_label'], |
|
87 | /* translators: accessibility text */ |
|
88 | __( '(opens in a new tab)', 'jetpack' ) |
|
89 | ); |
|
90 | } |
|
91 | } elseif ( true === $results['pass'] ) { |
|
92 | // Passing tests can chose to override defaults. |
|
93 | if ( $results['label'] ) { |