| @@ 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; |
|
| @@ 385-393 (lines=9) @@ | ||
| 382 | '<p>%s</p>', |
|
| 383 | $fail['resolution'] |
|
| 384 | ); |
|
| 385 | if ( ! empty( $fail['action'] ) ) { |
|
| 386 | $result['actions'] = sprintf( |
|
| 387 | '<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>', |
|
| 388 | esc_url( $fail['action'] ), |
|
| 389 | __( 'Resolve', 'jetpack' ), |
|
| 390 | /* translators: accessibility text */ |
|
| 391 | __( '(opens in a new tab)', 'jetpack' ) |
|
| 392 | ); |
|
| 393 | } |
|
| 394 | } else { |
|
| 395 | $result['description'] .= sprintf( |
|
| 396 | '<p>%s</p>', |
|