|
@@ 2353-2355 (lines=3) @@
|
| 2350 |
|
return true; |
| 2351 |
|
} |
| 2352 |
|
|
| 2353 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2354 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2355 |
|
} |
| 2356 |
|
$sharer = new Sharing_Service(); |
| 2357 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2358 |
|
|
|
@@ 2393-2395 (lines=3) @@
|
| 2390 |
|
return true; |
| 2391 |
|
} |
| 2392 |
|
|
| 2393 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2394 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2395 |
|
} |
| 2396 |
|
|
| 2397 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 2398 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 2421-2423 (lines=3) @@
|
| 2418 |
|
return new WP_Error( 'invalid_param', sprintf( esc_html__( "%s must be a string prefixed with 'custom-' and followed by a numeric ID.", 'jetpack' ), $param ) ); |
| 2419 |
|
} |
| 2420 |
|
|
| 2421 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2422 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2423 |
|
} |
| 2424 |
|
$sharer = new Sharing_Service(); |
| 2425 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2426 |
|
|