|
@@ 1852-1854 (lines=3) @@
|
| 1849 |
|
return true; |
| 1850 |
|
} |
| 1851 |
|
|
| 1852 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1853 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1854 |
|
} |
| 1855 |
|
$sharer = new Sharing_Service(); |
| 1856 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 1857 |
|
|
|
@@ 1892-1894 (lines=3) @@
|
| 1889 |
|
return true; |
| 1890 |
|
} |
| 1891 |
|
|
| 1892 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1893 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1894 |
|
} |
| 1895 |
|
|
| 1896 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 1897 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 1920-1922 (lines=3) @@
|
| 1917 |
|
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 ) ); |
| 1918 |
|
} |
| 1919 |
|
|
| 1920 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1921 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1922 |
|
} |
| 1923 |
|
$sharer = new Sharing_Service(); |
| 1924 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 1925 |
|
|