|
@@ 1780-1782 (lines=3) @@
|
| 1777 |
|
return true; |
| 1778 |
|
} |
| 1779 |
|
|
| 1780 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1781 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1782 |
|
} |
| 1783 |
|
$sharer = new Sharing_Service(); |
| 1784 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 1785 |
|
|
|
@@ 1820-1822 (lines=3) @@
|
| 1817 |
|
return true; |
| 1818 |
|
} |
| 1819 |
|
|
| 1820 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1821 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1822 |
|
} |
| 1823 |
|
|
| 1824 |
|
if ( ( ! empty( $value['sharing_name'] ) && ! is_string( $value['sharing_name'] ) ) |
| 1825 |
|
|| ( ! empty( $value['sharing_url'] ) && ! is_string( $value['sharing_url'] ) ) |
|
@@ 1848-1850 (lines=3) @@
|
| 1845 |
|
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 ) ); |
| 1846 |
|
} |
| 1847 |
|
|
| 1848 |
|
if ( ! class_exists( 'Sharing_Service' ) && ! @include( JETPACK__PLUGIN_DIR . 'modules/sharedaddy/sharing-service.php' ) ) { |
| 1849 |
|
return new WP_Error( 'invalid_param', esc_html__( 'Failed loading required dependency Sharing_Service.', 'jetpack' ) ); |
| 1850 |
|
} |
| 1851 |
|
$sharer = new Sharing_Service(); |
| 1852 |
|
$services = array_keys( $sharer->get_all_services() ); |
| 1853 |
|
|