|
@@ 1625-1627 (lines=3) @@
|
| 1622 |
|
return true; |
| 1623 |
|
} |
| 1624 |
|
|
| 1625 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1626 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1627 |
|
} |
| 1628 |
|
$sharer = new Sharing_Service(); |
| 1629 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 1630 |
|
|
|
@@ 1665-1667 (lines=3) @@
|
| 1662 |
|
return true; |
| 1663 |
|
} |
| 1664 |
|
|
| 1665 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1666 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1667 |
|
} |
| 1668 |
|
|
| 1669 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 1670 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 1693-1695 (lines=3) @@
|
| 1690 |
|
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 ) ); |
| 1691 |
|
} |
| 1692 |
|
|
| 1693 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1694 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1695 |
|
} |
| 1696 |
|
$sharer = new Sharing_Service(); |
| 1697 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 1698 |
|
|