diff options
author | Yury German <blueknight@gentoo.org> | 2019-04-28 17:39:03 -0400 |
---|---|---|
committer | Yury German <blueknight@gentoo.org> | 2019-04-28 17:39:03 -0400 |
commit | 2ab16973706e120bc344c83be6295b54fd908c57 (patch) | |
tree | 358267a52d9542c77c90e3663cea32d13b8cb639 /plugins/jetpack/jetpack.php | |
parent | Update twentysixteen 1.7 (diff) | |
download | blogs-gentoo-2ab16973706e120bc344c83be6295b54fd908c57.tar.gz blogs-gentoo-2ab16973706e120bc344c83be6295b54fd908c57.tar.bz2 blogs-gentoo-2ab16973706e120bc344c83be6295b54fd908c57.zip |
Updating packages for 5.1.1
Signed-off-by: Yury German <blueknight@gentoo.org>
Diffstat (limited to 'plugins/jetpack/jetpack.php')
-rw-r--r-- | plugins/jetpack/jetpack.php | 43 |
1 files changed, 38 insertions, 5 deletions
diff --git a/plugins/jetpack/jetpack.php b/plugins/jetpack/jetpack.php index 7bd7a243..ad69a19b 100644 --- a/plugins/jetpack/jetpack.php +++ b/plugins/jetpack/jetpack.php @@ -5,16 +5,16 @@ * Plugin URI: https://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: 6.8.1 + * Version: 7.2.1 * Author URI: https://jetpack.com * License: GPL2+ * Text Domain: jetpack * Domain Path: /languages/ */ -define( 'JETPACK__MINIMUM_WP_VERSION', '4.8' ); +define( 'JETPACK__MINIMUM_WP_VERSION', '5.0' ); -define( 'JETPACK__VERSION', '6.8.1' ); +define( 'JETPACK__VERSION', '7.2.1' ); define( 'JETPACK_MASTER_USER', true ); define( 'JETPACK__API_VERSION', 1 ); define( 'JETPACK__PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); @@ -29,6 +29,19 @@ defined( 'JETPACK__WPCOM_JSON_API_HOST' ) or define( 'JETPACK__WPCOM_JSON_API defined( 'JETPACK__SANDBOX_DOMAIN' ) or define( 'JETPACK__SANDBOX_DOMAIN', '' ); +defined( 'JETPACK__DEBUGGER_PUBLIC_KEY' ) or define( + 'JETPACK__DEBUGGER_PUBLIC_KEY', + "\r\n" . '-----BEGIN PUBLIC KEY-----' . "\r\n" + . 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm+uLLVoxGCY71LS6KFc6' . "\r\n" + . '1UnF6QGBAsi5XF8ty9kR3/voqfOkpW+gRerM2Kyjy6DPCOmzhZj7BFGtxSV2ZoMX' . "\r\n" + . '9ZwWxzXhl/Q/6k8jg8BoY1QL6L2K76icXJu80b+RDIqvOfJruaAeBg1Q9NyeYqLY' . "\r\n" + . 'lEVzN2vIwcFYl+MrP/g6Bc2co7Jcbli+tpNIxg4Z+Hnhbs7OJ3STQLmEryLpAxQO' . "\r\n" + . 'q8cbhQkMx+FyQhxzSwtXYI/ClCUmTnzcKk7SgGvEjoKGAmngILiVuEJ4bm7Q1yok' . "\r\n" + . 'xl9+wcfW6JAituNhml9dlHCWnn9D3+j8pxStHihKy2gVMwiFRjLEeD8K/7JVGkb/' . "\r\n" + . 'EwIDAQAB' . "\r\n" + . '-----END PUBLIC KEY-----' . "\r\n" +); + /** * Returns the location of Jetpack's lib directory. This filter is applied * in require_lib(). @@ -42,7 +55,7 @@ defined( 'JETPACK__SANDBOX_DOMAIN' ) or define( 'JETPACK__SANDBOX_DOMAIN', '' ); function jetpack_require_lib_dir() { return JETPACK__PLUGIN_DIR . '_inc/lib'; } -add_filter( 'jetpack_require_lib_dir', 'jetpack_require_lib_dir' ); + /** * Checks if the code debug mode turned on, and returns false if it is. When Jetpack is in @@ -62,6 +75,25 @@ function jetpack_should_use_minified_assets() { } return true; } + +/** + * Outputs for an admin notice about running Jetpack on outdated WordPress. + * + * @since 7.2.0 + */ +function jetpack_admin_unsupported_wp_notice() { ?> + <div class="notice notice-error is-dismissible"> + <p><?php esc_html_e( 'Jetpack requires a more recent version of WordPress and has been paused. Please update WordPress to continue enjoying Jetpack.', 'jetpack' ); ?></p> + </div> + <?php +} + +if ( version_compare( $GLOBALS['wp_version'], JETPACK__MINIMUM_WP_VERSION, '<' ) ) { + add_action( 'admin_notices', 'jetpack_admin_unsupported_wp_notice' ); + return; +} + +add_filter( 'jetpack_require_lib_dir', 'jetpack_require_lib_dir' ); add_filter( 'jetpack_should_use_minified_assets', 'jetpack_should_use_minified_assets', 9 ); // @todo: Abstract out the admin functions, and only include them if is_admin() @@ -89,11 +121,12 @@ require_once( JETPACK__PLUGIN_DIR . 'modules/module-headings.php'); require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-constants.php'); require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-idc.php' ); require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-connection-banner.php' ); +require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-plan.php' ); if ( is_admin() ) { require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-admin.php' ); require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-jitm.php' ); - require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-debugger.php' ); + require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-affiliate.php' ); } // Play nice with http://wp-cli.org/ |