|
@@ 2122-2124 (lines=3) @@
|
| 2119 |
|
return true; |
| 2120 |
|
} |
| 2121 |
|
|
| 2122 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2123 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2124 |
|
} |
| 2125 |
|
$sharer = new Sharing_Service(); |
| 2126 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2127 |
|
|
|
@@ 2159-2161 (lines=3) @@
|
| 2156 |
|
return true; |
| 2157 |
|
} |
| 2158 |
|
|
| 2159 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2160 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2161 |
|
} |
| 2162 |
|
|
| 2163 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 2164 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 2187-2189 (lines=3) @@
|
| 2184 |
|
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 ) ); |
| 2185 |
|
} |
| 2186 |
|
|
| 2187 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2188 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2189 |
|
} |
| 2190 |
|
$sharer = new Sharing_Service(); |
| 2191 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2192 |
|
|