|
@@ 2819-2821 (lines=3) @@
|
| 2816 |
|
return true; |
| 2817 |
|
} |
| 2818 |
|
|
| 2819 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2820 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2821 |
|
} |
| 2822 |
|
$sharer = new Sharing_Service(); |
| 2823 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2824 |
|
|
|
@@ 2859-2861 (lines=3) @@
|
| 2856 |
|
return true; |
| 2857 |
|
} |
| 2858 |
|
|
| 2859 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2860 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2861 |
|
} |
| 2862 |
|
|
| 2863 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 2864 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 2887-2889 (lines=3) @@
|
| 2884 |
|
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 ) ); |
| 2885 |
|
} |
| 2886 |
|
|
| 2887 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2888 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2889 |
|
} |
| 2890 |
|
$sharer = new Sharing_Service(); |
| 2891 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2892 |
|
|