|
@@ 1870-1872 (lines=3) @@
|
| 1867 |
|
return true; |
| 1868 |
|
} |
| 1869 |
|
|
| 1870 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1871 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1872 |
|
} |
| 1873 |
|
$sharer = new Sharing_Service(); |
| 1874 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 1875 |
|
|
|
@@ 1910-1912 (lines=3) @@
|
| 1907 |
|
return true; |
| 1908 |
|
} |
| 1909 |
|
|
| 1910 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1911 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1912 |
|
} |
| 1913 |
|
|
| 1914 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 1915 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 1938-1940 (lines=3) @@
|
| 1935 |
|
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 ) ); |
| 1936 |
|
} |
| 1937 |
|
|
| 1938 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1939 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1940 |
|
} |
| 1941 |
|
$sharer = new Sharing_Service(); |
| 1942 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 1943 |
|
|