|
@@ 1711-1713 (lines=3) @@
|
| 1708 |
|
return true; |
| 1709 |
|
} |
| 1710 |
|
|
| 1711 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1712 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1713 |
|
} |
| 1714 |
|
$sharer = new Sharing_Service(); |
| 1715 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 1716 |
|
|
|
@@ 1751-1753 (lines=3) @@
|
| 1748 |
|
return true; |
| 1749 |
|
} |
| 1750 |
|
|
| 1751 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1752 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1753 |
|
} |
| 1754 |
|
|
| 1755 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 1756 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 1779-1781 (lines=3) @@
|
| 1776 |
|
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 ) ); |
| 1777 |
|
} |
| 1778 |
|
|
| 1779 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1780 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1781 |
|
} |
| 1782 |
|
$sharer = new Sharing_Service(); |
| 1783 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 1784 |
|
|