|
@@ 2129-2131 (lines=3) @@
|
| 2126 |
|
return true; |
| 2127 |
|
} |
| 2128 |
|
|
| 2129 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2130 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2131 |
|
} |
| 2132 |
|
$sharer = new Sharing_Service(); |
| 2133 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2134 |
|
|
|
@@ 2166-2168 (lines=3) @@
|
| 2163 |
|
return true; |
| 2164 |
|
} |
| 2165 |
|
|
| 2166 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2167 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2168 |
|
} |
| 2169 |
|
|
| 2170 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 2171 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 2194-2196 (lines=3) @@
|
| 2191 |
|
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 ) ); |
| 2192 |
|
} |
| 2193 |
|
|
| 2194 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2195 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2196 |
|
} |
| 2197 |
|
$sharer = new Sharing_Service(); |
| 2198 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2199 |
|
|