|
@@ 1842-1844 (lines=3) @@
|
| 1839 |
|
return true; |
| 1840 |
|
} |
| 1841 |
|
|
| 1842 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1843 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1844 |
|
} |
| 1845 |
|
$sharer = new Sharing_Service(); |
| 1846 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 1847 |
|
|
|
@@ 1882-1884 (lines=3) @@
|
| 1879 |
|
return true; |
| 1880 |
|
} |
| 1881 |
|
|
| 1882 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1883 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1884 |
|
} |
| 1885 |
|
|
| 1886 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 1887 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 1910-1912 (lines=3) @@
|
| 1907 |
|
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 ) ); |
| 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 |
|
$sharer = new Sharing_Service(); |
| 1914 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 1915 |
|
|