|
@@ 2478-2480 (lines=3) @@
|
| 2475 |
|
return true; |
| 2476 |
|
} |
| 2477 |
|
|
| 2478 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2479 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2480 |
|
} |
| 2481 |
|
$sharer = new Sharing_Service(); |
| 2482 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2483 |
|
|
|
@@ 2518-2520 (lines=3) @@
|
| 2515 |
|
return true; |
| 2516 |
|
} |
| 2517 |
|
|
| 2518 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2519 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2520 |
|
} |
| 2521 |
|
|
| 2522 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 2523 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 2546-2548 (lines=3) @@
|
| 2543 |
|
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 ) ); |
| 2544 |
|
} |
| 2545 |
|
|
| 2546 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2547 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2548 |
|
} |
| 2549 |
|
$sharer = new Sharing_Service(); |
| 2550 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2551 |
|
|