|
@@ 2715-2717 (lines=3) @@
|
| 2712 |
|
return true; |
| 2713 |
|
} |
| 2714 |
|
|
| 2715 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2716 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2717 |
|
} |
| 2718 |
|
$sharer = new Sharing_Service(); |
| 2719 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2720 |
|
|
|
@@ 2755-2757 (lines=3) @@
|
| 2752 |
|
return true; |
| 2753 |
|
} |
| 2754 |
|
|
| 2755 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2756 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2757 |
|
} |
| 2758 |
|
|
| 2759 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 2760 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 2783-2785 (lines=3) @@
|
| 2780 |
|
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 ) ); |
| 2781 |
|
} |
| 2782 |
|
|
| 2783 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2784 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2785 |
|
} |
| 2786 |
|
$sharer = new Sharing_Service(); |
| 2787 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2788 |
|
|