Version Description
- Release date: August 19th, 2016
Bug Fixes:
- We fixed the code which displays the Facebook share count to accomodate Facebook's new data structure.
- We fixed an issue which caused PHP notices to get logged for users of the Twenty Fourteen theme.
- We fixed an issue with the Minileven mobile theme which was preventing it from loading.
- Improved Sync performance.
- Increase security by sanitizing a URL used in the SSO process.
Download this release
Release Info
| Developer | samhotchkiss |
| Plugin | |
| Version | 4.2.2 |
| Comparing to | |
| See all releases | |
Code changes from version 4.2.1 to 4.2.2
- changelog.txt +12 -0
- class.jetpack-user-agent.php +5 -0
- class.jetpack.php +2 -0
- jetpack.php +2 -2
- modules/manage/confirm-admin.php +5 -0
- modules/minileven.php +3 -1
- modules/sharedaddy/sharing.js +2 -2
- modules/sso.php +2 -2
- readme.txt +13 -1
- sync/class.jetpack-sync-defaults.php +8 -1
changelog.txt
CHANGED
|
@@ -1,5 +1,17 @@
|
|
| 1 |
== Changelog ==
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
= 4.2.1 =
|
| 4 |
|
| 5 |
* Release date: August 17th, 2016
|
| 1 |
== Changelog ==
|
| 2 |
|
| 3 |
+
= 4.2.2 =
|
| 4 |
+
|
| 5 |
+
* Release date: August 19th, 2016
|
| 6 |
+
|
| 7 |
+
**Bug Fixes:**
|
| 8 |
+
|
| 9 |
+
* We fixed the code which displays the Facebook share count to accomodate Facebook's new data structure.
|
| 10 |
+
* We fixed an issue which caused PHP notices to get logged for users of the Twenty Fourteen theme.
|
| 11 |
+
* We fixed an issue with the Minileven mobile theme which was preventing it from loading.
|
| 12 |
+
* Improved Sync performance.
|
| 13 |
+
* Increase security by sanitizing a URL used in the SSO process.
|
| 14 |
+
|
| 15 |
= 4.2.1 =
|
| 16 |
|
| 17 |
* Release date: August 17th, 2016
|
class.jetpack-user-agent.php
CHANGED
|
@@ -15,6 +15,11 @@ function jetpack_is_mobile( $kind = 'any', $return_matched_agent = false ) {
|
|
| 15 |
static $first_run = true;
|
| 16 |
static $matched_agent = '';
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
if ( function_exists( 'apply_filters' ) ) {
|
| 19 |
/**
|
| 20 |
* Filter the value of jetpack_is_mobile before it is calculated.
|
| 15 |
static $first_run = true;
|
| 16 |
static $matched_agent = '';
|
| 17 |
|
| 18 |
+
// If an invalid kind is passed in, reset it to default.
|
| 19 |
+
if ( ! isset( $kinds[ $kind ] ) ) {
|
| 20 |
+
$kind = 'any';
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
if ( function_exists( 'apply_filters' ) ) {
|
| 24 |
/**
|
| 25 |
* Filter the value of jetpack_is_mobile before it is calculated.
|
class.jetpack.php
CHANGED
|
@@ -196,6 +196,8 @@ class Jetpack {
|
|
| 196 |
'add-meta-tags/add-meta-tags.php', // Add Meta Tags
|
| 197 |
'autodescription/autodescription.php', // The SEO Framework
|
| 198 |
'easy-facebook-share-thumbnails/esft.php', // Easy Facebook Share Thumbnail
|
|
|
|
|
|
|
| 199 |
'facebook/facebook.php', // Facebook (official plugin)
|
| 200 |
'facebook-awd/AWD_facebook.php', // Facebook AWD All in one
|
| 201 |
'facebook-featured-image-and-open-graph-meta-tags/fb-featured-image.php',
|
| 196 |
'add-meta-tags/add-meta-tags.php', // Add Meta Tags
|
| 197 |
'autodescription/autodescription.php', // The SEO Framework
|
| 198 |
'easy-facebook-share-thumbnails/esft.php', // Easy Facebook Share Thumbnail
|
| 199 |
+
'heateor-open-graph-meta-tags/heateor-open-graph-meta-tags.php',
|
| 200 |
+
// Open Graph Meta Tags by Heateor
|
| 201 |
'facebook/facebook.php', // Facebook (official plugin)
|
| 202 |
'facebook-awd/AWD_facebook.php', // Facebook AWD All in one
|
| 203 |
'facebook-featured-image-and-open-graph-meta-tags/fb-featured-image.php',
|
jetpack.php
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
* Plugin URI: http://jetpack.com
|
| 6 |
* 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.
|
| 7 |
* Author: Automattic
|
| 8 |
-
* Version: 4.2.
|
| 9 |
* Author URI: http://jetpack.com
|
| 10 |
* License: GPL2+
|
| 11 |
* Text Domain: jetpack
|
|
@@ -14,7 +14,7 @@
|
|
| 14 |
|
| 15 |
define( 'JETPACK__MINIMUM_WP_VERSION', '4.5' );
|
| 16 |
|
| 17 |
-
define( 'JETPACK__VERSION', '4.2.
|
| 18 |
define( 'JETPACK_MASTER_USER', true );
|
| 19 |
define( 'JETPACK__API_VERSION', 1 );
|
| 20 |
define( 'JETPACK__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
| 5 |
* Plugin URI: http://jetpack.com
|
| 6 |
* 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.
|
| 7 |
* Author: Automattic
|
| 8 |
+
* Version: 4.2.2
|
| 9 |
* Author URI: http://jetpack.com
|
| 10 |
* License: GPL2+
|
| 11 |
* Text Domain: jetpack
|
| 14 |
|
| 15 |
define( 'JETPACK__MINIMUM_WP_VERSION', '4.5' );
|
| 16 |
|
| 17 |
+
define( 'JETPACK__VERSION', '4.2.2' );
|
| 18 |
define( 'JETPACK_MASTER_USER', true );
|
| 19 |
define( 'JETPACK__API_VERSION', 1 );
|
| 20 |
define( 'JETPACK__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
modules/manage/confirm-admin.php
CHANGED
|
@@ -22,6 +22,11 @@ switch( $section ) {
|
|
| 22 |
$link_title = __( 'Manage Your Plugins', 'jetpack' );
|
| 23 |
break;
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
case 'themes':
|
| 26 |
$link = 'https://wordpress.com/design/' . $normalized_site_url;
|
| 27 |
$link_title = __( 'Manage Your Themes', 'jetpack' );
|
| 22 |
$link_title = __( 'Manage Your Plugins', 'jetpack' );
|
| 23 |
break;
|
| 24 |
|
| 25 |
+
case 'plugins-setup':
|
| 26 |
+
$link = 'https://wordpress.com/plugins/setup/' . $normalized_site_url;
|
| 27 |
+
$link_title = __( 'Back to Plan Setup', 'jetpack' );
|
| 28 |
+
break;
|
| 29 |
+
|
| 30 |
case 'themes':
|
| 31 |
$link = 'https://wordpress.com/design/' . $normalized_site_url;
|
| 32 |
$link_title = __( 'Manage Your Themes', 'jetpack' );
|
modules/minileven.php
CHANGED
|
@@ -129,6 +129,8 @@ function minileven_enabled( $wp_mobile_disable_option ) {
|
|
| 129 |
return true;
|
| 130 |
}
|
| 131 |
|
| 132 |
-
|
|
|
|
|
|
|
| 133 |
|
| 134 |
jetpack_load_minileven();
|
| 129 |
return true;
|
| 130 |
}
|
| 131 |
|
| 132 |
+
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
|
| 133 |
+
add_filter( 'option_wp_mobile_disable', 'minileven_enabled' );
|
| 134 |
+
}
|
| 135 |
|
| 136 |
jetpack_load_minileven();
|
modules/sharedaddy/sharing.js
CHANGED
|
@@ -72,7 +72,7 @@ if ( sharing_js_options && sharing_js_options.counts ) {
|
|
| 72 |
}
|
| 73 |
|
| 74 |
for ( url in data ) {
|
| 75 |
-
if ( ! data.hasOwnProperty( url ) || ! data[ url ].
|
| 76 |
continue;
|
| 77 |
}
|
| 78 |
|
|
@@ -82,7 +82,7 @@ if ( sharing_js_options && sharing_js_options.counts ) {
|
|
| 82 |
continue;
|
| 83 |
}
|
| 84 |
|
| 85 |
-
WPCOMSharing.inject_share_count( 'sharing-facebook-' + WPCOM_sharing_counts[ permalink ], data[ url ].
|
| 86 |
}
|
| 87 |
},
|
| 88 |
update_linkedin_count : function( data ) {
|
| 72 |
}
|
| 73 |
|
| 74 |
for ( url in data ) {
|
| 75 |
+
if ( ! data.hasOwnProperty( url ) || ! data[ url ].share.share_count ) {
|
| 76 |
continue;
|
| 77 |
}
|
| 78 |
|
| 82 |
continue;
|
| 83 |
}
|
| 84 |
|
| 85 |
+
WPCOMSharing.inject_share_count( 'sharing-facebook-' + WPCOM_sharing_counts[ permalink ], data[ url ].share.share_count );
|
| 86 |
}
|
| 87 |
},
|
| 88 |
update_linkedin_count : function( data ) {
|
modules/sso.php
CHANGED
|
@@ -532,13 +532,13 @@ class Jetpack_SSO {
|
|
| 532 |
<span><?php esc_html_e( 'Or', 'jetpack' ); ?></span>
|
| 533 |
</div>
|
| 534 |
|
| 535 |
-
<a href="<?php echo add_query_arg( 'jetpack-sso-show-default-form', '1' ); ?>" class="jetpack-sso-toggle wpcom">
|
| 536 |
<?php
|
| 537 |
esc_html_e( 'Log in with username and password', 'jetpack' )
|
| 538 |
?>
|
| 539 |
</a>
|
| 540 |
|
| 541 |
-
<a href="<?php echo add_query_arg( 'jetpack-sso-show-default-form', '0' ); ?>" class="jetpack-sso-toggle default">
|
| 542 |
<?php
|
| 543 |
esc_html_e( 'Log in with WordPress.com', 'jetpack' )
|
| 544 |
?>
|
| 532 |
<span><?php esc_html_e( 'Or', 'jetpack' ); ?></span>
|
| 533 |
</div>
|
| 534 |
|
| 535 |
+
<a href="<?php echo esc_url( add_query_arg( 'jetpack-sso-show-default-form', '1' ) ); ?>" class="jetpack-sso-toggle wpcom">
|
| 536 |
<?php
|
| 537 |
esc_html_e( 'Log in with username and password', 'jetpack' )
|
| 538 |
?>
|
| 539 |
</a>
|
| 540 |
|
| 541 |
+
<a href="<?php echo esc_url( add_query_arg( 'jetpack-sso-show-default-form', '0' ) ); ?>" class="jetpack-sso-toggle default">
|
| 542 |
<?php
|
| 543 |
esc_html_e( 'Log in with WordPress.com', 'jetpack' )
|
| 544 |
?>
|
readme.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
=== Jetpack by WordPress.com ===
|
| 2 |
Contributors: automattic, adamkheckler, aduth, akirk, allendav, alternatekev, andy, annezazu, apeatling, azaozz, batmoo, barry, beaulebens, blobaugh, cainm, cena, cfinke, chaselivingston, chellycat, csonnek, danielbachhuber, davoraltman, daniloercoli, designsimply, dllh, drawmyface, dsmart, dzver, ebinnion, eliorivero, enej, eoigal, ethitter, gcorne, georgestephanis, gibrown, goldsounds, hew, hugobaeta, hypertextranch, iammattthomas, iandunn, jacobshere, jblz, jeherve, jenhooks, jenia, jgs, jkudish, jmdodd, Joen, johnjamesjacoby, jshreve, koke, kraftbj, lamdayap, lancewillett, lschuyler, macmanx, martinremy, matt, matveb, mattwiebe, maverick3x6, mcsf, mdawaffe, michael-arestad, migueluy, mikeyarce, mkaz, nancythanki, nickmomrik, obenland, pento, professor44, rachelsquirrel, rdcoll, ryancowles, richardmuscat, richardmtl, roccotripaldi, samhotchkiss, scarstocea, sdquirk, stefmattana, stephdau, tmoorewp, Viper007Bond, westi, yoavf, zinigor
|
| 3 |
Tags: WordPress.com, jet pack, comments, contact, gallery, performance, sharing, security, shortcodes, stats, subscriptions, widgets
|
| 4 |
-
Stable tag: 4.2.
|
| 5 |
Requires at least: 4.5
|
| 6 |
Tested up to: 4.6
|
| 7 |
|
|
@@ -75,6 +75,18 @@ There are opportunities for developers at all levels to contribute. [Learn more
|
|
| 75 |
|
| 76 |
== Changelog ==
|
| 77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
= 4.2.1 =
|
| 79 |
|
| 80 |
* Release date: August 17th, 2016
|
| 1 |
=== Jetpack by WordPress.com ===
|
| 2 |
Contributors: automattic, adamkheckler, aduth, akirk, allendav, alternatekev, andy, annezazu, apeatling, azaozz, batmoo, barry, beaulebens, blobaugh, cainm, cena, cfinke, chaselivingston, chellycat, csonnek, danielbachhuber, davoraltman, daniloercoli, designsimply, dllh, drawmyface, dsmart, dzver, ebinnion, eliorivero, enej, eoigal, ethitter, gcorne, georgestephanis, gibrown, goldsounds, hew, hugobaeta, hypertextranch, iammattthomas, iandunn, jacobshere, jblz, jeherve, jenhooks, jenia, jgs, jkudish, jmdodd, Joen, johnjamesjacoby, jshreve, koke, kraftbj, lamdayap, lancewillett, lschuyler, macmanx, martinremy, matt, matveb, mattwiebe, maverick3x6, mcsf, mdawaffe, michael-arestad, migueluy, mikeyarce, mkaz, nancythanki, nickmomrik, obenland, pento, professor44, rachelsquirrel, rdcoll, ryancowles, richardmuscat, richardmtl, roccotripaldi, samhotchkiss, scarstocea, sdquirk, stefmattana, stephdau, tmoorewp, Viper007Bond, westi, yoavf, zinigor
|
| 3 |
Tags: WordPress.com, jet pack, comments, contact, gallery, performance, sharing, security, shortcodes, stats, subscriptions, widgets
|
| 4 |
+
Stable tag: 4.2.2
|
| 5 |
Requires at least: 4.5
|
| 6 |
Tested up to: 4.6
|
| 7 |
|
| 75 |
|
| 76 |
== Changelog ==
|
| 77 |
|
| 78 |
+
= 4.2.2 =
|
| 79 |
+
|
| 80 |
+
* Release date: August 19th, 2016
|
| 81 |
+
|
| 82 |
+
**Bug Fixes:**
|
| 83 |
+
|
| 84 |
+
* We fixed the code which displays the Facebook share count to accomodate Facebook's new data structure.
|
| 85 |
+
* We fixed an issue which caused PHP notices to get logged for users of the Twenty Fourteen theme.
|
| 86 |
+
* We fixed an issue with the Minileven mobile theme which was preventing it from loading.
|
| 87 |
+
* Improved Sync performance.
|
| 88 |
+
* Increase security by sanitizing a URL used in the SSO process.
|
| 89 |
+
|
| 90 |
= 4.2.1 =
|
| 91 |
|
| 92 |
* Release date: August 17th, 2016
|
sync/class.jetpack-sync-defaults.php
CHANGED
|
@@ -211,7 +211,14 @@ class Jetpack_Sync_Defaults {
|
|
| 211 |
'snapFB',
|
| 212 |
'syndication_item_hash',
|
| 213 |
'phonenumber_spellings',
|
| 214 |
-
'tmac_last_id'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 215 |
);
|
| 216 |
|
| 217 |
// TODO: move this to server? - these are theme support values
|
| 211 |
'snapFB',
|
| 212 |
'syndication_item_hash',
|
| 213 |
'phonenumber_spellings',
|
| 214 |
+
'tmac_last_id',
|
| 215 |
+
'opanda_imperessions',
|
| 216 |
+
'administer_stats',
|
| 217 |
+
'spec_ads_views',
|
| 218 |
+
'snp_views',
|
| 219 |
+
'mip_post_views_count',
|
| 220 |
+
'esml_socialcount_LAST_UPDATED',
|
| 221 |
+
'wprss_last_update_items',
|
| 222 |
);
|
| 223 |
|
| 224 |
// TODO: move this to server? - these are theme support values
|
