|
@@ 2593-2595 (lines=3) @@
|
| 2590 |
|
return true; |
| 2591 |
|
} |
| 2592 |
|
|
| 2593 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2594 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2595 |
|
} |
| 2596 |
|
$sharer = new Sharing_Service(); |
| 2597 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2598 |
|
|
|
@@ 2633-2635 (lines=3) @@
|
| 2630 |
|
return true; |
| 2631 |
|
} |
| 2632 |
|
|
| 2633 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2634 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2635 |
|
} |
| 2636 |
|
|
| 2637 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 2638 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 2661-2663 (lines=3) @@
|
| 2658 |
|
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 ) ); |
| 2659 |
|
} |
| 2660 |
|
|
| 2661 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2662 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2663 |
|
} |
| 2664 |
|
$sharer = new Sharing_Service(); |
| 2665 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2666 |
|
|