@@ 147-158 (lines=12) @@ | ||
144 | protected function test__blog_token_if_exists() { |
|
145 | $blog_token = $this->helper_get_blog_token(); |
|
146 | ||
147 | if ( $blog_token ) { |
|
148 | $result = self::passing_test( array( 'name' => __FUNCTION__ ) ); |
|
149 | } else { |
|
150 | $result = self::failing_test( |
|
151 | array( |
|
152 | 'name' => __FUNCTION__, |
|
153 | 'short_description' => __( 'Blog token is missing.', 'jetpack' ), |
|
154 | 'action' => admin_url( 'admin.php?page=jetpack#/dashboard' ), |
|
155 | 'action_label' => __( 'Disconnect your site from WordPress.com, and connect it again.', 'jetpack' ), |
|
156 | ) |
|
157 | ); |
|
158 | } |
|
159 | ||
160 | return $result; |
|
161 | } |
|
@@ 303-313 (lines=11) @@ | ||
300 | $name = __FUNCTION__; |
|
301 | if ( function_exists( 'xml_parser_create' ) ) { |
|
302 | $result = self::passing_test( array( 'name' => $name ) ); |
|
303 | } else { |
|
304 | $result = self::failing_test( |
|
305 | array( |
|
306 | 'name' => $name, |
|
307 | 'label' => __( 'PHP XML manipulation libraries are not available.', 'jetpack' ), |
|
308 | 'short_description' => __( 'Please ask your hosting provider to refer to our server requirements and enable PHP\'s XML module.', 'jetpack' ), |
|
309 | 'action_label' => __( 'View our server requirements', 'jetpack' ), |
|
310 | 'action' => Redirect::get_url( 'jetpack-support-server-requirements' ), |
|
311 | ) |
|
312 | ); |
|
313 | } |
|
314 | return $result; |
|
315 | } |
|
316 |