|
@@ 2496-2498 (lines=3) @@
|
| 2493 |
|
return true; |
| 2494 |
|
} |
| 2495 |
|
|
| 2496 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2497 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2498 |
|
} |
| 2499 |
|
$sharer = new Sharing_Service(); |
| 2500 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2501 |
|
|
|
@@ 2536-2538 (lines=3) @@
|
| 2533 |
|
return true; |
| 2534 |
|
} |
| 2535 |
|
|
| 2536 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2537 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2538 |
|
} |
| 2539 |
|
|
| 2540 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 2541 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 2564-2566 (lines=3) @@
|
| 2561 |
|
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 ) ); |
| 2562 |
|
} |
| 2563 |
|
|
| 2564 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2565 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2566 |
|
} |
| 2567 |
|
$sharer = new Sharing_Service(); |
| 2568 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2569 |
|
|