This commit is contained in:
root 2019-11-23 00:18:49 +00:00
parent 9e4ebc036c
commit 66cf9bf767
37 changed files with 228 additions and 63 deletions

View File

@ -2,6 +2,8 @@ Options -indexes
RewriteCond %{REQUEST_METHOD} ^(GET|POST|PUT|PATCH|DELETE) [NC]
RewriteCond %{REQUEST_URI} ^.*wp-json/wp/ [NC]
RewriteCond %{REMOTE_ADDR} !^212\.63.
RewriteCond %{REMOTE_ADDR} !^81\.231.
RewriteRule ^(.*)$ - [F]
# BEGIN WordPress

View File

@ -615,6 +615,13 @@ __( "You're fueled up and ready to go, Jetpack is now active.", "jetpack" ), //
__( "You're fueled up and ready to go.", "jetpack" ), // _inc/client/components/jetpack-notices/state-notices.jsx:213
__( "Your server is misconfigured, which means that Jetpack Protect is unable to effectively protect your site.", "jetpack" ), // _inc/client/components/jetpack-notices/state-notices.jsx:217
__( "Learn More", "jetpack" ), // _inc/client/components/jetpack-notices/state-notices.jsx:223
__( "Dashboard", "jetpack" ), // _inc/client/components/masthead/index.jsx:95
__( "Settings", "jetpack" ), // _inc/client/components/masthead/index.jsx:103
__( "Email me a link to log in to the app", "jetpack" ), // _inc/client/components/mobile-magic-link/index.jsx:52
__( "Easily log in to the WordPress app by clicking the link we'll send to the email address on your account.", "jetpack" ), // _inc/client/components/mobile-magic-link/index.jsx:54
_x( "Cancel", "A caption for a button to cancel an action.", "jetpack" ), // _inc/client/components/mobile-magic-link/index.jsx:63
_x( "Send link", "A caption for a button to log in to the WordPress mobile app.", "jetpack" ), // _inc/client/components/mobile-magic-link/index.jsx:68
__( "Log in to the WordPress mobile app", "jetpack" ), // _inc/client/components/mobile-magic-link/index.jsx:89
__( "Disconnect Jetpack", "jetpack" ), // _inc/client/components/jetpack-termination-dialog/dialog.jsx:122
__( "Disable Jetpack", "jetpack" ), // _inc/client/components/jetpack-termination-dialog/dialog.jsx:122
__( "Are you sure you want to disconnect?", "jetpack" ), // _inc/client/components/jetpack-termination-dialog/dialog.jsx:138
@ -630,13 +637,6 @@ __( "Jetpack is currently powering features on your site. Once you disable Jetpa
__( " Weve highlighted some of the features you rely on below.", "jetpack" ), // _inc/client/components/jetpack-termination-dialog/features.jsx:106
__( "Jetpack has many powerful tools that can help you achieve your goals", "jetpack" ), // _inc/client/components/jetpack-termination-dialog/features.jsx:128
__( "Have a question? Wed love to help! {{a}}Send a question to the Jetpack support team.{{/a}}", "jetpack" ), // _inc/client/components/jetpack-termination-dialog/features.jsx:139
__( "Dashboard", "jetpack" ), // _inc/client/components/masthead/index.jsx:95
__( "Settings", "jetpack" ), // _inc/client/components/masthead/index.jsx:103
__( "Email me a link to log in to the app", "jetpack" ), // _inc/client/components/mobile-magic-link/index.jsx:52
__( "Easily log in to the WordPress app by clicking the link we'll send to the email address on your account.", "jetpack" ), // _inc/client/components/mobile-magic-link/index.jsx:54
_x( "Cancel", "A caption for a button to cancel an action.", "jetpack" ), // _inc/client/components/mobile-magic-link/index.jsx:63
_x( "Send link", "A caption for a button to log in to the WordPress mobile app.", "jetpack" ), // _inc/client/components/mobile-magic-link/index.jsx:68
__( "Log in to the WordPress mobile app", "jetpack" ), // _inc/client/components/mobile-magic-link/index.jsx:89
__( "%(moduleName)s has been disabled by a site administrator. {{link}}Learn more{{/link}}.", "jetpack" ), // _inc/client/components/module-overridden-banner/index.jsx:52
__( "Updating Post by Email address…", "jetpack" ), // _inc/client/components/module-settings/connect-module-options.jsx:63
__( "Regenerated Post by Email address.", "jetpack" ), // _inc/client/components/module-settings/connect-module-options.jsx:64

View File

@ -53,7 +53,10 @@ class Jetpack_Keyring_Service_Helper {
public static function add_sharing_menu() {
global $submenu;
if ( ! is_array( $submenu['options-general.php'] ) ) {
if (
! isset( $submenu['options-general.php'] )
|| ! is_array( $submenu['options-general.php'] )
) {
return;
}

View File

@ -2,6 +2,81 @@
**This is a list detailing changes for all the past Jetpack releases. For more information about the current release, see [the readme](https://github.com/Automattic/jetpack/blob/master/readme.txt).**
= 7.9 =
* Release date: November 5, 2019
* Release post: https://wp.me/p1moTy-lzt
**Major enhancements**
* Block Editor: allow authors to upload videos to our Jetpack Videos service from the Video Block.
* Block Editor: add new post-submission settings to the Form block.
* Twenty Twenty: Ensure full compatibility with the upcoming default theme.
**Enhancements**
* Admin Page: update icons for security settings.
* Backup: support for Jetpack Backup functionality with simpler configuration.
* Block Editor: provide block previews for Jetpack blocks.
* Block Editor: add image size option to the Slideshow block.
* Block Editor: improve the display of opening hours when using the Business Hours block.
* CLI: no longer return exit code 1 if trying to disconnect a site that's already disconnected.
* Connection flow: update connect buttons on main dashboard page and plugins page to use the new connection flow.
* Connection flow: add plan billing period toggle.
* Contact Form: synchronize form data with WordPress.com when submitting a form via the Form block.
* Dashboard: update styles for visual parity with the WordPress.com dashboard.
* Dashboard: improve performance of the Jetpack dashboard when the plugin is not connected to WordPress.com yet.
* Dashboard: add new plans' information to Plans pages.
* Dashboard: update design to better integrate with the updated design of the WordPress dashboard in WordPress 5.3.
* Dashboard: improve experience for site owners looking to disconnect their site from WordPress.com.
* Debug: provide additional information in Tools > Site Health when a site's connection to WordPress.com is broken.
* Performance: modernize various parts of the code to use PHP 5.6+ functionality.
* Progressive Web Apps: sunset feature. If you wish to continue to use that feature on your site, we recommend installing another plugin that offers the functionality you need.
* Related Posts: remove nofollow attribute from links.
* Related Posts: add Posts to the REST API response for all post types that support them.
* Search: add new filter allowing one to adjuct Jetpack Search's ES query languages.
* Search: continued work on upcoming Instant Search features.
* Shortcodes: add support for tab sizing to Gist shortcodes and embeds.
* Social Networks: update Facebook logo to match new color.
* Sync: improve reliability of the information synchronized back to your site when connecting to WordPress.com.
* Tiled Galleries: ensure that color profile information is retained for all images in Tiled Galleries.
* Widgets: add aria-current attribute to links when on same page.
* WordAds: improve speed & resource use of Ads' loading scripts.
**Improved compatibility**
* AMP: ensure that one can use the Slideshow and the MailChimp blocks when using the AMP plugin.
* AMP: support the new Dev mode for Notifications and Stats features.
* Admin Page: improve compatibility with themes and plugins that insert CSS in the dashboard.
* Blocks: ensure that all blocks display well in the editor when using WordPress 5.3.
* Carousel: ensure that the feature works with the new gallery markup introduced in WordPress 5.3.
* Dashboard Notices: ensure that all notices redirect to the right page, including on WooCommerce dashboard pages.
* General: use new functionality available in WordPress 5.3.
* PHP: resolve deprecation warnings in anticipation of PHP 7.4.
* Related Posts: avoid conflicts with other plugins adding elements below the post content, especially when the AMP plugin is active on the site.
* SSO: ensure that the Secure Sign In Form is displayed properly when using WordPress 5.3.
* Widgets: update deprecated option in the Facebook Page Plugin widget.
* WordPress.com REST API: ensure compatibility with WordPress 5.3.
**Bug fixes**
* Admin Page: remove Jetpack dashboard link for registered users (non admins) when the site is not connected to WordPress.com.
* Admin Page: translate empty Stats chart's message.
* Admin Page: change default settings tab depending on your role.
* Admin Page: do not display Composing header for editors.
* Block Editor: ensure that the Ad block is compatible with dark themes.
* Contact Form: revise the email validation function to include length limit.
* Debug: reduce instances when an inconclusive response would result in an error.
* Geo-Location: fix spacing for RSS geo-location namespaces.
* Image CDN: remove wp-dom-ready dependency to improve performance on the frontend.
* Search: add hooks for when Search falls back to using the local database.
* Site Logo: ensure that the right stylesheet is loaded depending on your site's language.
* Site Verification Tools: ensure that you can connect your site to Google Search Console even when Publicize is disabled.
* Sync: prevent a PHP Notice in some cases where a post isn't actually a post.
* Widgets: ensure that the Google Maps API key in the Contact Info widget can be set to only work on your domain.
* Widgets: fix timeout issues that may sometimes occur in the GoodReads widget when user has added lots of books to their account.
* WordPress.com REST API: better site preview support for sites using WordPress in a subdirectory.
= 7.8 =
* Release date: October 1, 2019

View File

@ -4,7 +4,7 @@
* 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: 7.9
* Version: 7.9.1
* Author URI: https://jetpack.com
* License: GPL2+
* Text Domain: jetpack
@ -15,7 +15,7 @@
define( 'JETPACK__MINIMUM_WP_VERSION', '5.1' );
define( 'JETPACK__MINIMUM_PHP_VERSION', '5.6' );
define( 'JETPACK__VERSION', '7.9' );
define( 'JETPACK__VERSION', '7.9.1' );
define( 'JETPACK_MASTER_USER', true );
define( 'JETPACK__API_VERSION', 1 );
define( 'JETPACK__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );

View File

@ -222,17 +222,22 @@ class Filter_Embedded_HTML_Objects {
* @param array $matches Array of matches.
*/
private static function dispatch_entities( $matches ) {
$matches[0] = html_entity_decode( $matches[0] );
$orig_html = $matches[0];
$decoded_matches = array( html_entity_decode( $matches[0] ) );
return self::dispatch( $matches );
return self::dispatch( $decoded_matches, $orig_html );
}
/**
* Filter and replace HTML element.
*
* @param array $matches Array of matches.
* @param array $matches Array of matches.
* @param string $orig_html Original html. Returned if no results are found via $matches processing.
*/
private static function dispatch( $matches ) {
private static function dispatch( $matches, $orig_html = null ) {
if ( null === $orig_html ) {
$orig_html = $matches[0];
}
$html = preg_replace( '%&#0*58;//%', '://', $matches[0] );
$attrs = self::get_attrs( $html );
if ( isset( $attrs['src'] ) ) {
@ -253,7 +258,7 @@ class Filter_Embedded_HTML_Objects {
}
}
return $matches[0];
return $orig_html;
}
$src = trim( $src );
@ -299,11 +304,11 @@ class Filter_Embedded_HTML_Objects {
// Keep the failed match so we can later replace it with a link,
// but return the original content to give others a chance too.
self::$failed_embeds[] = array(
'match' => $matches[0],
'match' => $orig_html,
'src' => esc_url( $src ),
);
return $matches[0];
return $orig_html;
}
/**

View File

@ -51,7 +51,7 @@ function dailymotion_embed_to_shortcode( $content ) {
}
$id = basename( substr( $src, strlen( 'www.dailymotion.com/swf' ) ) );
$id = preg_replace( '/[^a-z0-9].*$/i', '', $id );
$id = preg_replace( '/[^a-z0-9].*$/is', '', $id );
$content = str_replace( $match[0], "[dailymotion id=$id]", $content );
/** This action is documented in modules/shortcodes/youtube.php */

View File

@ -69,7 +69,13 @@ function flickr_embed_to_shortcode( $content ) {
continue;
}
$code_atts = array( 'video' => $flashvars['photo_id'] );
$photo_id = preg_replace( '#[^A-Za-z0-9_./@+-]+#', '', $flashvars['photo_id'] );
if ( ! strlen( $photo_id ) ) {
continue;
}
$code_atts = array( 'video' => $photo_id );
if (
isset( $flashvars['flickr_show_info_box'] )
@ -79,7 +85,10 @@ function flickr_embed_to_shortcode( $content ) {
}
if ( ! empty( $flashvars['photo_secret'] ) ) {
$code_atts['secret'] = $flashvars['photo_secret'];
$photo_secret = preg_replace( '#[^A-Za-z0-9_./@+-]+#', '', $flashvars['photo_secret'] );
if ( strlen( $photo_secret ) ) {
$code_atts['secret'] = $photo_secret;
}
}
if ( ! empty( $params['width']['value'] ) ) {

View File

@ -1 +1 @@
.infinite-scroll .pagination-wrapper,.infinite-scroll.neverending #site-footer,.infinite-scroll.neverending .footer-nav-widgets-wrapper{display:none}.infinite-end.neverending .footer-nav-widgets-wrapper,.infinity-end.neverending #site-footer{display:block}.infinite-loader{margin:calc(3 * 1rem) auto}.infinite-loader .spinner{margin:0 auto;right:inherit!important}#site-content #infinite-handle{margin:0 auto;max-width:58rem;width:calc(100% - 8rem)}#site-content #infinite-handle span{background:100% 0;display:block;font-size:1.7rem;text-align:center}#site-content #infinite-handle span button,#site-content #infinite-handle span button:focus,#site-content #infinite-handle span button:hover{-webkit-appearance:none;-moz-appearance:none;border:none;background:#cd2653;border-radius:0;color:#fff;cursor:pointer;display:inline-block;font-size:1.5rem;font-weight:600;letter-spacing:.0333em;line-height:1.25;margin:0;opacity:1;padding:1.1em 1.44em;text-align:center;text-decoration:none;text-transform:uppercase;transition:opacity .15s linear}#site-content #infinite-handle span button:hover{text-decoration:underline}#site-content .infinite-wrap .hentry:first-of-type{padding:4rem 0 0}.entry-content #jp-relatedposts h3.jp-relatedposts-headline,.entry-content div.sharedaddy h3.sd-title,.entry-content h3.sd-title{font-size:2.8rem;font-weight:700;letter-spacing:-.016875em;line-height:1.5}@media (min-width:700px){.entry-content #jp-relatedposts h3.jp-relatedposts-headline,.entry-content div.sharedaddy h3.sd-title,.entry-content h3.sd-title{font-size:4rem}}.entry-content div.sharedaddy h3.sd-title:before,.entry-content h3.sd-title:before{border:0 none}.entry-content #jp-relatedposts h3.jp-relatedposts-headline em:before{border:0 none}.widget_authors ul{margin-right:0}.widget_authors li{margin-top:1rem;list-style:none}.widget_authors li:first-child{margin-top:2rem}.widget_eu_cookie_law_widget #eu-cookie-law,.widget_eu_cookie_law_widget #eu-cookie-law .accept{font-size:1.6rem;font-weight:500;padding:2rem}.widget_eu_cookie_law_widget #eu-cookie-law .accept{font-size:1.4rem;font-weight:600;letter-spacing:.0333em;line-height:1.25;padding:1.1em 1.44em;text-decoration:none;text-transform:uppercase;transition:opacity .15s linear}@media (max-width:600px){.widget_eu_cookie_law_widget #eu-cookie-law{font-size:1.4rem;padding:1.5rem 1.5rem 6.5rem}.widget_eu_cookie_law_widget #eu-cookie-law .accept{font-size:1.2rem;bottom:1.5rem;left:auto;right:1.5rem;padding:1rem;margin:0}}#jp-relatedposts#jp-relatedposts .jp-relatedposts-items p,#jp-relatedposts#jp-relatedposts .jp-relatedposts-items-visual h4.jp-relatedposts-post-title{font-size:inherit;line-height:1.5}.jp-related-posts-i2__post li{margin:0}
.infinite-scroll .pagination-wrapper,.infinite-scroll.neverending #site-footer,.infinite-scroll.neverending .footer-nav-widgets-wrapper{display:none}.infinite-end.neverending .footer-nav-widgets-wrapper,.infinity-end.neverending #site-footer{display:block}.infinite-loader{margin:calc(3 * 1rem) auto}.infinite-loader .spinner{margin:0 auto;right:inherit!important}#site-content #infinite-handle{margin:0 auto;max-width:58rem;width:calc(100% - 8rem)}#site-content #infinite-handle span{background:100% 0;display:block;font-size:1.7rem;text-align:center}#site-content #infinite-handle span button,#site-content #infinite-handle span button:focus,#site-content #infinite-handle span button:hover{-webkit-appearance:none;-moz-appearance:none;border:none;background:#cd2653;border-radius:0;color:#fff;cursor:pointer;display:inline-block;font-size:1.5rem;font-weight:600;letter-spacing:.0333em;line-height:1.25;margin:0;opacity:1;padding:1.1em 1.44em;text-align:center;text-decoration:none;text-transform:uppercase;transition:opacity .15s linear}#site-content #infinite-handle span button:hover{text-decoration:underline}#site-content .infinite-wrap .hentry:first-of-type{padding:4rem 0 0}.entry-content #jp-relatedposts h3.jp-relatedposts-headline,.entry-content div.sharedaddy h3.sd-title,.entry-content h3.sd-title{font-size:2.8rem;font-weight:700;letter-spacing:-.016875em;line-height:1.5}@media (min-width:700px){.entry-content #jp-relatedposts h3.jp-relatedposts-headline,.entry-content div.sharedaddy h3.sd-title,.entry-content h3.sd-title{font-size:4rem}}.entry-content div.sharedaddy h3.sd-title:before,.entry-content h3.sd-title:before{border:0 none}.entry-content #jp-relatedposts h3.jp-relatedposts-headline em:before{border:0 none}.widget_authors ul{margin-right:0}.widget_authors li{margin-top:1rem;list-style:none}.widget_authors li:first-child{margin-top:2rem}.widget_eu_cookie_law_widget #eu-cookie-law,.widget_eu_cookie_law_widget #eu-cookie-law .accept{font-size:1.6rem;font-weight:500;padding:2rem}.widget_eu_cookie_law_widget #eu-cookie-law .accept{font-size:1.4rem;font-weight:600;letter-spacing:.0333em;line-height:1.25;padding:1.1em 1.44em;text-decoration:none;text-transform:uppercase;transition:opacity .15s linear}@media (max-width:600px){.widget_eu_cookie_law_widget #eu-cookie-law{font-size:1.4rem;padding:1.5rem 1.5rem 6.5rem}.widget_eu_cookie_law_widget #eu-cookie-law .accept{font-size:1.2rem;bottom:1.5rem;left:auto;right:1.5rem;padding:1rem;margin:0}}.entry-content #jp-relatedposts{max-width:120rem;margin:1em auto;width:calc(100% - 4rem)}@media (min-width:700px){.entry-content #jp-relatedposts{width:calc(100% - 8rem)}}#jp-relatedposts .jp-relatedposts-grid{display:flex;flex-grow:1;flex-basis:0;justify-content:space-between;box-sizing:border-box}#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post,#jp-relatedposts .jp-relatedposts-post{width:calc(33% - 2rem);margin-right:0;margin-left:0}@media only screen and (max-width:640px){#jp-relatedposts .jp-relatedposts-grid{flex-direction:column}#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post,#jp-relatedposts .jp-relatedposts-post{width:100%}}#jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post{padding-left:0}#jp-relatedposts#jp-relatedposts .jp-relatedposts-items p,#jp-relatedposts#jp-relatedposts .jp-relatedposts-items-visual h4.jp-relatedposts-post-title{font-size:inherit;line-height:1.5}#jp-relatedposts .jp-relatedposts-items-visual{margin-left:0}#jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post img.jp-relatedposts-post-img{width:100%}.jp-related-posts-i2__post li{margin:0}.wp-block-jetpack-gif{margin:1em auto!important}

View File

@ -151,13 +151,73 @@
/* Related Posts */
.entry-content #jp-relatedposts {
max-width: 120rem;
margin: 1em auto;
width: calc(100% - 4rem);
}
@media (min-width: 700px) {
.entry-content #jp-relatedposts {
width: calc(100% - 8rem);
}
}
#jp-relatedposts .jp-relatedposts-grid {
display: flex;
flex-grow: 1;
flex-basis: 0;
justify-content: space-between;
box-sizing: border-box;
}
#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post,
#jp-relatedposts .jp-relatedposts-post {
width: calc(33% - 2rem);
margin-left: 0;
margin-right: 0;
}
@media only screen and (max-width: 640px) {
#jp-relatedposts .jp-relatedposts-grid {
flex-direction: column;
}
#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post,
#jp-relatedposts .jp-relatedposts-post {
width: 100%;
}
}
#jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post {
padding-right: 0;
}
#jp-relatedposts#jp-relatedposts .jp-relatedposts-items p,
#jp-relatedposts#jp-relatedposts .jp-relatedposts-items-visual h4.jp-relatedposts-post-title {
font-size: inherit;
line-height: 1.5;
}
#jp-relatedposts .jp-relatedposts-items-visual {
margin-right: 0;
}
#jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post img.jp-relatedposts-post-img {
width: 100%;
}
/**
* Blocks
*/
/* Related Posts Block */
.jp-related-posts-i2__post li {
margin: 0;
}
/* GIF Block */
.wp-block-jetpack-gif {
/* !important because the gif block styles are loaded in the footer after this file */
margin: 1em auto !important;
}

View File

@ -157,7 +157,7 @@ if ( ! class_exists( 'Jetpack_Contact_Info_Widget' ) ) {
if ( '' !== $instance['hours'] ) {
printf(
'<div class="confit-hours" itemprop="openingHours"></div>',
'<div class="confit-hours" itemprop="openingHours">%s</div>',
str_replace( "\n", '<br/>', esc_html( $instance['hours'] ) ) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
);
}

View File

@ -1,7 +1,7 @@
=== Jetpack by WordPress.com ===
Contributors: automattic, adamkheckler, aduth, akirk, allendav, alternatekev, andy, annezazu, apeatling, azaozz, batmoo, barry, beaulebens, blobaugh, cainm, cena, cfinke, chaselivingston, chellycat, clickysteve, csonnek, danielbachhuber, davoraltman, daniloercoli, designsimply, dllh, drawmyface, dsmart, dzver, ebinnion, egregor, eliorivero, enej, eoigal, erania-pinnera, ethitter, gcorne, georgestephanis, gibrown, goldsounds, hew, hugobaeta, hypertextranch, iammattthomas, iandunn, jblz, jasmussen, jeffgolenski, jeherve, jenhooks, jenia, jessefriedman, jgs, jkudish, jmdodd, joanrho, johnjamesjacoby, jshreve, kbrownkd, keoshi, koke, kraftbj, lancewillett, lschuyler, macmanx, martinremy, matt, matveb, mattwiebe, maverick3x6, mcsf, mdawaffe, MichaelArestad, migueluy, mikeyarce, mkaz, nancythanki, nickmomrik, obenland, oskosk, pento, professor44, rachelsquirrel, rdcoll, ryancowles, richardmuscat, richardmtl, roccotripaldi, samhotchkiss, scarstocea, sdquirk, stephdau, tmoorewp, tyxla, Viper007Bond, westi, yoavf, zinigor
Tags: Jetpack, WordPress.com, backup, security, related posts, CDN, speed, anti-spam, social sharing, SEO, video, stats
Stable tag: 7.9
Stable tag: 7.9.1
Requires at least: 5.1
Requires PHP: 5.6
Tested up to: 5.3
@ -96,6 +96,22 @@ There are opportunities for developers at all levels to contribute. [Learn more
== Changelog ==
= 7.9.1 =
* Release date: November 19, 2019
* Release post: https://wp.me/p1moTy-lHA
**Bug fixes**
* Security: fix vulnerability in the way Jetpack processes embed codes.
* Verification Tools: avoid PHP warnings when using plugins to modify the WordPress admin menu.
* Widgets: ensure opening hours can be displayed properly in the Contact Info Widget.
**Improved compatibility**
* Twenty Twenty: ensure that Related Posts and Jetpack Blocks are displayed nicely in the new default theme.
= 7.9 =
* Release date: November 5, 2019

View File

@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit6e2d8fcc9a148e8377da3ad63915ef6b::getLoader();
return ComposerAutoloaderInitc02e982a353b1af9213bbd008507b00c::getLoader();

View File

@ -122,7 +122,7 @@ if ( ! function_exists( __NAMESPACE__ . '\autoloader' ) ) {
/**
* Prepare all the classes for autoloading.
*/
function enqueue_packages_413b8016605a23254110d67ec7f17805() {
function enqueue_packages_2591d7d86986575d21e433c643c0c282() {
$class_map = require_once dirname( __FILE__ ) . '/composer/autoload_classmap_package.php';
foreach ( $class_map as $class_name => $class_info ) {
enqueue_package_class( $class_name, $class_info['version'], $class_info['path'] );
@ -141,4 +141,4 @@ function enqueue_packages_413b8016605a23254110d67ec7f17805() {
}
}
}
enqueue_packages_413b8016605a23254110d67ec7f17805();
enqueue_packages_2591d7d86986575d21e433c643c0c282();

View File

@ -44,9 +44,9 @@ class Terms_Of_Service {
/**
* Acton fired when the master user has revoked their agreement to the terms of service.
*
* @since 7.9.0
* @since 7.9.1
*/
do_action( 'jetpack_reject_to_terms_of_service' );
do_action( 'jetpack_reject_terms_of_service' );
}
/**
@ -60,15 +60,11 @@ class Terms_Of_Service {
* @return bool
*/
public function has_agreed() {
if ( ! $this->get_raw_has_agreed() ) {
return false;
}
if ( $this->is_development_mode() ) {
return false;
}
return $this->is_active();
return $this->get_raw_has_agreed() || $this->is_active();
}
/**
@ -89,8 +85,7 @@ class Terms_Of_Service {
* @return bool
*/
protected function is_active() {
$manager = new Manager();
return $manager->is_active();
return ( new Manager() )->is_active();
}
/**
@ -100,7 +95,7 @@ class Terms_Of_Service {
* @return bool
*/
protected function get_raw_has_agreed() {
return \Jetpack_Options::get_option( self::OPTION_NAME );
return \Jetpack_Options::get_option( self::OPTION_NAME, false );
}
/**

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit6e2d8fcc9a148e8377da3ad63915ef6b
class ComposerAutoloaderInitc02e982a353b1af9213bbd008507b00c
{
private static $loader;
@ -19,15 +19,15 @@ class ComposerAutoloaderInit6e2d8fcc9a148e8377da3ad63915ef6b
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit6e2d8fcc9a148e8377da3ad63915ef6b', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitc02e982a353b1af9213bbd008507b00c', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInit6e2d8fcc9a148e8377da3ad63915ef6b', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitc02e982a353b1af9213bbd008507b00c', 'loadClassLoader'));
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require_once __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit6e2d8fcc9a148e8377da3ad63915ef6b::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitc02e982a353b1af9213bbd008507b00c::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
@ -39,19 +39,19 @@ class ComposerAutoloaderInit6e2d8fcc9a148e8377da3ad63915ef6b
$loader->register(true);
if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInit6e2d8fcc9a148e8377da3ad63915ef6b::$files;
$includeFiles = Composer\Autoload\ComposerStaticInitc02e982a353b1af9213bbd008507b00c::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire6e2d8fcc9a148e8377da3ad63915ef6b($fileIdentifier, $file);
composerRequirec02e982a353b1af9213bbd008507b00c($fileIdentifier, $file);
}
return $loader;
}
}
function composerRequire6e2d8fcc9a148e8377da3ad63915ef6b($fileIdentifier, $file)
function composerRequirec02e982a353b1af9213bbd008507b00c($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInit6e2d8fcc9a148e8377da3ad63915ef6b
class ComposerStaticInitc02e982a353b1af9213bbd008507b00c
{
public static $files = array (
'bce4ecd6aabb2a2948e06d0e2c4ea9a6' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/load-ixr.php',
@ -141,9 +141,9 @@ class ComposerStaticInit6e2d8fcc9a148e8377da3ad63915ef6b
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit6e2d8fcc9a148e8377da3ad63915ef6b::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit6e2d8fcc9a148e8377da3ad63915ef6b::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit6e2d8fcc9a148e8377da3ad63915ef6b::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitc02e982a353b1af9213bbd008507b00c::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitc02e982a353b1af9213bbd008507b00c::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitc02e982a353b1af9213bbd008507b00c::$classMap;
}, null, ClassLoader::class);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB