|
@@ 155-166 (lines=12) @@
|
| 152 |
|
} |
| 153 |
|
$blog_token = $this->helper_get_blog_token(); |
| 154 |
|
|
| 155 |
|
if ( $blog_token ) { |
| 156 |
|
$result = self::passing_test( array( 'name' => __FUNCTION__ ) ); |
| 157 |
|
} else { |
| 158 |
|
$result = self::failing_test( |
| 159 |
|
array( |
| 160 |
|
'name' => __FUNCTION__, |
| 161 |
|
'short_description' => __( 'Blog token is missing.', 'jetpack' ), |
| 162 |
|
'action' => admin_url( 'admin.php?page=jetpack#/dashboard' ), |
| 163 |
|
'action_label' => __( 'Disconnect your site from WordPress.com, and connect it again.', 'jetpack' ), |
| 164 |
|
) |
| 165 |
|
); |
| 166 |
|
} |
| 167 |
|
|
| 168 |
|
return $result; |
| 169 |
|
} |
|
@@ 311-321 (lines=11) @@
|
| 308 |
|
$name = __FUNCTION__; |
| 309 |
|
if ( function_exists( 'xml_parser_create' ) ) { |
| 310 |
|
$result = self::passing_test( array( 'name' => $name ) ); |
| 311 |
|
} else { |
| 312 |
|
$result = self::failing_test( |
| 313 |
|
array( |
| 314 |
|
'name' => $name, |
| 315 |
|
'label' => __( 'PHP XML manipulation libraries are not available.', 'jetpack' ), |
| 316 |
|
'short_description' => __( 'Please ask your hosting provider to refer to our server requirements and enable PHP\'s XML module.', 'jetpack' ), |
| 317 |
|
'action_label' => __( 'View our server requirements', 'jetpack' ), |
| 318 |
|
'action' => Redirect::get_url( 'jetpack-support-server-requirements' ), |
| 319 |
|
) |
| 320 |
|
); |
| 321 |
|
} |
| 322 |
|
return $result; |
| 323 |
|
} |
| 324 |
|
|