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