|
@@ 2775-2777 (lines=3) @@
|
| 2772 |
|
return true; |
| 2773 |
|
} |
| 2774 |
|
|
| 2775 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2776 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2777 |
|
} |
| 2778 |
|
$sharer = new Sharing_Service(); |
| 2779 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2780 |
|
|
|
@@ 2815-2817 (lines=3) @@
|
| 2812 |
|
return true; |
| 2813 |
|
} |
| 2814 |
|
|
| 2815 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2816 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2817 |
|
} |
| 2818 |
|
|
| 2819 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 2820 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 2843-2845 (lines=3) @@
|
| 2840 |
|
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 ) ); |
| 2841 |
|
} |
| 2842 |
|
|
| 2843 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2844 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2845 |
|
} |
| 2846 |
|
$sharer = new Sharing_Service(); |
| 2847 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2848 |
|
|