|
@@ 1863-1865 (lines=3) @@
|
| 1860 |
|
return true; |
| 1861 |
|
} |
| 1862 |
|
|
| 1863 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1864 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1865 |
|
} |
| 1866 |
|
$sharer = new Sharing_Service(); |
| 1867 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 1868 |
|
|
|
@@ 1903-1905 (lines=3) @@
|
| 1900 |
|
return true; |
| 1901 |
|
} |
| 1902 |
|
|
| 1903 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1904 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1905 |
|
} |
| 1906 |
|
|
| 1907 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 1908 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 1931-1933 (lines=3) @@
|
| 1928 |
|
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 ) ); |
| 1929 |
|
} |
| 1930 |
|
|
| 1931 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1932 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1933 |
|
} |
| 1934 |
|
$sharer = new Sharing_Service(); |
| 1935 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 1936 |
|
|