|
@@ 1886-1888 (lines=3) @@
|
| 1883 |
|
return true; |
| 1884 |
|
} |
| 1885 |
|
|
| 1886 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1887 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1888 |
|
} |
| 1889 |
|
$sharer = new Sharing_Service(); |
| 1890 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 1891 |
|
|
|
@@ 1926-1928 (lines=3) @@
|
| 1923 |
|
return true; |
| 1924 |
|
} |
| 1925 |
|
|
| 1926 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1927 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1928 |
|
} |
| 1929 |
|
|
| 1930 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 1931 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 1954-1956 (lines=3) @@
|
| 1951 |
|
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 ) ); |
| 1952 |
|
} |
| 1953 |
|
|
| 1954 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! include_once( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1955 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1956 |
|
} |
| 1957 |
|
$sharer = new Sharing_Service(); |
| 1958 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 1959 |
|
|