|
@@ 2021-2023 (lines=3) @@
|
| 2018 |
|
return true; |
| 2019 |
|
} |
| 2020 |
|
|
| 2021 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2022 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2023 |
|
} |
| 2024 |
|
$sharer = new Sharing_Service(); |
| 2025 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2026 |
|
|
|
@@ 2058-2060 (lines=3) @@
|
| 2055 |
|
return true; |
| 2056 |
|
} |
| 2057 |
|
|
| 2058 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2059 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2060 |
|
} |
| 2061 |
|
|
| 2062 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 2063 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 2086-2088 (lines=3) @@
|
| 2083 |
|
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 ) ); |
| 2084 |
|
} |
| 2085 |
|
|
| 2086 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2087 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2088 |
|
} |
| 2089 |
|
$sharer = new Sharing_Service(); |
| 2090 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2091 |
|
|