| @@ 404-412 (lines=9) @@ | ||
| 401 | '<p>%s</p>', |
|
| 402 | $fail['resolution'] |
|
| 403 | ); |
|
| 404 | if ( ! empty( $fail['action'] ) ) { |
|
| 405 | $result['actions'] = sprintf( |
|
| 406 | '<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>', |
|
| 407 | esc_url( $fail['action'] ), |
|
| 408 | __( 'Resolve', 'jetpack' ), |
|
| 409 | /* translators: accessibility text */ |
|
| 410 | __( '(opens in a new tab)', 'jetpack' ) |
|
| 411 | ); |
|
| 412 | } |
|
| 413 | } else { |
|
| 414 | $result['description'] .= sprintf( |
|
| 415 | '<p>%s</p>', |
|
| @@ 86-94 (lines=9) @@ | ||
| 83 | } |
|
| 84 | ||
| 85 | $return['status'] = $results['severity']; |
|
| 86 | if ( ! empty( $results['action'] ) ) { |
|
| 87 | $return['actions'] = sprintf( |
|
| 88 | '<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>', |
|
| 89 | esc_url( $results['action'] ), |
|
| 90 | $results['action_label'], |
|
| 91 | /* translators: accessibility text */ |
|
| 92 | __( '(opens in a new tab)', 'jetpack' ) |
|
| 93 | ); |
|
| 94 | } |
|
| 95 | } elseif ( true === $results['pass'] ) { |
|
| 96 | $return['description'] = $results['message']; |
|
| 97 | if ( $results['label'] ) { |
|