|
@@ 2583-2585 (lines=3) @@
|
| 2580 |
|
return true; |
| 2581 |
|
} |
| 2582 |
|
|
| 2583 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2584 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2585 |
|
} |
| 2586 |
|
$sharer = new Sharing_Service(); |
| 2587 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2588 |
|
|
|
@@ 2623-2625 (lines=3) @@
|
| 2620 |
|
return true; |
| 2621 |
|
} |
| 2622 |
|
|
| 2623 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2624 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2625 |
|
} |
| 2626 |
|
|
| 2627 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 2628 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 2651-2653 (lines=3) @@
|
| 2648 |
|
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 ) ); |
| 2649 |
|
} |
| 2650 |
|
|
| 2651 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2652 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2653 |
|
} |
| 2654 |
|
$sharer = new Sharing_Service(); |
| 2655 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2656 |
|
|