| @@ -83,9 +83,13 @@ | ||
| 83 | 83 | |
| 84 | 84 | if ( $this->parsely->site_id_is_missing() ) { |
| 85 | 85 | $result['status'] = 'critical'; |
| 86 | 86 | $result['label'] = __( 'You need to provide the Site ID', 'wp-parsely' ); |
| 87 | - $result['actions'] = __( 'The site ID can be set in the <a href="/wp-admin/admin.php?page=parsely-settings">Parse.ly Settings Page</a>.', 'wp-parsely' ); | |
| 87 | + $result['actions'] = sprintf( | |
| 88 | + /* translators: %s: URL to the Parse.ly settings page */ | |
| 89 | + __( 'The site ID can be set in the <a href="%s">Parse.ly Settings Page</a>.', 'wp-parsely' ), | |
| 90 | + esc_url( Parsely::get_settings_url() ) | |
| 91 | + ); | |
| 88 | 92 | } |
| 89 | 93 | |
| 90 | 94 | return $result; |
| 91 | 95 | }; |
| @@ -99,8 +103,9 @@ | ||
| 99 | 103 | $direct['parsely'] = array( |
| 100 | 104 | 'label' => __( 'Parse.ly Site ID', 'wp-parsely' ), |
| 101 | 105 | 'test' => $test, |
| 102 | 106 | ); |
| 107 | + $tests['direct'] = $direct; | |
| 103 | 108 | |
| 104 | 109 | return $tests; |
| 105 | 110 | } |
| 106 | 111 | |