|
@@ 1643-1645 (lines=3) @@
|
| 1640 |
|
return true; |
| 1641 |
|
} |
| 1642 |
|
|
| 1643 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1644 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1645 |
|
} |
| 1646 |
|
$sharer = new Sharing_Service(); |
| 1647 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 1648 |
|
|
|
@@ 1683-1685 (lines=3) @@
|
| 1680 |
|
return true; |
| 1681 |
|
} |
| 1682 |
|
|
| 1683 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1684 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1685 |
|
} |
| 1686 |
|
|
| 1687 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 1688 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 1711-1713 (lines=3) @@
|
| 1708 |
|
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 ) ); |
| 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 |
|
|