diff options
Diffstat (limited to 'plugins/jetpack/jetpack.php')
-rw-r--r-- | plugins/jetpack/jetpack.php | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/plugins/jetpack/jetpack.php b/plugins/jetpack/jetpack.php index b6f4f945..4118993a 100644 --- a/plugins/jetpack/jetpack.php +++ b/plugins/jetpack/jetpack.php @@ -5,16 +5,16 @@ * Plugin URI: http://jetpack.com * Description: Bring the power of the WordPress.com cloud to your self-hosted WordPress. Jetpack enables you to connect your blog to a WordPress.com account to use the powerful features normally only available to WordPress.com users. * Author: Automattic - * Version: 3.9.6 + * Version: 4.0.2 * Author URI: http://jetpack.com * License: GPL2+ * Text Domain: jetpack * Domain Path: /languages/ */ -define( 'JETPACK__MINIMUM_WP_VERSION', '4.3' ); +define( 'JETPACK__MINIMUM_WP_VERSION', '4.4' ); -define( 'JETPACK__VERSION', '3.9.6' ); +define( 'JETPACK__VERSION', '4.0.2' ); define( 'JETPACK_MASTER_USER', true ); define( 'JETPACK__API_VERSION', 1 ); define( 'JETPACK__PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); @@ -27,6 +27,21 @@ defined( 'JETPACK__API_BASE' ) or define( 'JETPACK__API_BASE', 'ht defined( 'JETPACK_PROTECT__API_HOST' ) or define( 'JETPACK_PROTECT__API_HOST', 'https://api.bruteprotect.com/' ); defined( 'JETPACK__WPCOM_JSON_API_HOST' ) or define( 'JETPACK__WPCOM_JSON_API_HOST', 'public-api.wordpress.com' ); +/** + * Returns the location of Jetpack's lib directory. This filter is applied + * in require_lib(). + * + * @since 4.0.2 + * + * @return string Location of Jetpack library directory. + * + * @filter require_lib_dir + */ +function jetpack_require_lib_dir() { + return JETPACK__PLUGIN_DIR . '_inc/lib'; +} +add_filter( 'jetpack_require_lib_dir', 'jetpack_require_lib_dir' ); + // @todo: Abstract out the admin functions, and only include them if is_admin() // @todo: Only include things like class.jetpack-sync.php if we're connected. require_once( JETPACK__PLUGIN_DIR . 'class.jetpack.php' ); @@ -38,8 +53,6 @@ require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-sync.php' ); require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-options.php' ); require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-user-agent.php' ); require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-post-images.php' ); -require_once( JETPACK__PLUGIN_DIR . 'class.media-extractor.php' ); -require_once( JETPACK__PLUGIN_DIR . 'class.media-summary.php' ); require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-error.php' ); require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-debugger.php' ); require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-heartbeat.php' ); |