|
@@ 1969-1971 (lines=3) @@
|
| 1966 |
|
return true; |
| 1967 |
|
} |
| 1968 |
|
|
| 1969 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1970 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1971 |
|
} |
| 1972 |
|
$sharer = new Sharing_Service(); |
| 1973 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 1974 |
|
|
|
@@ 2006-2008 (lines=3) @@
|
| 2003 |
|
return true; |
| 2004 |
|
} |
| 2005 |
|
|
| 2006 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2007 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2008 |
|
} |
| 2009 |
|
|
| 2010 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 2011 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 2034-2036 (lines=3) @@
|
| 2031 |
|
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 ) ); |
| 2032 |
|
} |
| 2033 |
|
|
| 2034 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 2035 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 2036 |
|
} |
| 2037 |
|
$sharer = new Sharing_Service(); |
| 2038 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 2039 |
|
|