|
@@ 2520-2522 (lines=3) @@
|
| 2517 |
|
return true; |
| 2518 |
|
} |
| 2519 |
|
|
| 2520 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2521 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2522 |
|
} |
| 2523 |
|
$sharer = new Sharing_Service(); |
| 2524 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2525 |
|
|
|
@@ 2560-2562 (lines=3) @@
|
| 2557 |
|
return true; |
| 2558 |
|
} |
| 2559 |
|
|
| 2560 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2561 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2562 |
|
} |
| 2563 |
|
|
| 2564 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 2565 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 2588-2590 (lines=3) @@
|
| 2585 |
|
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 ) ); |
| 2586 |
|
} |
| 2587 |
|
|
| 2588 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2589 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2590 |
|
} |
| 2591 |
|
$sharer = new Sharing_Service(); |
| 2592 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2593 |
|
|