Skip to content

Commit

Permalink
New build
Browse files Browse the repository at this point in the history
  • Loading branch information
jeherve committed Jul 14, 2020
1 parent df1e2eb commit 1e03131
Show file tree
Hide file tree
Showing 48 changed files with 436 additions and 354 deletions.
2 changes: 1 addition & 1 deletion _inc/blocks/editor-beta.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-token-list', 'wp-url', 'wp-viewport'), 'version' => 'faaedc22e9e677aa649953e0cd1a86e8');
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-token-list', 'wp-url', 'wp-viewport'), 'version' => '88f235c47c114d25f648ccf41450b00f');
2 changes: 1 addition & 1 deletion _inc/blocks/editor-beta.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _inc/blocks/editor-experimental.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-token-list', 'wp-url', 'wp-viewport'), 'version' => 'e7b5cdfb9286aeffbffeadd35f72299e');
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-token-list', 'wp-url', 'wp-viewport'), 'version' => 'bed34b8fa245785623ecb867ac23d427');
2 changes: 1 addition & 1 deletion _inc/blocks/editor-experimental.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _inc/blocks/editor.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-token-list', 'wp-url', 'wp-viewport'), 'version' => '7978162ff1606c7c4addc7715f1b050e');
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-token-list', 'wp-url', 'wp-viewport'), 'version' => 'f1b4d3fb2f131aa5260437fa95627516');
2 changes: 1 addition & 1 deletion _inc/blocks/editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _inc/build/admin.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-components', 'wp-polyfill'), 'version' => '648d2918570090a7b4d542647a4f1572');
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-components', 'wp-polyfill'), 'version' => 'c376d149b6144c6d40eae0d955b2f4eb');
2 changes: 1 addition & 1 deletion _inc/build/admin.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,15 @@ public function get_instagram_connections() {
$body = json_decode( wp_remote_retrieve_body( $response ) );

$connections = array();
foreach ( $body->connections as $connection ) {
if ( 'instagram-basic-display' === $connection->service && 'ok' === $connection->status ) {
$connections[] = array(
'token' => (string) $connection->ID,
'username' => $connection->external_name,
);

if ( isset( $body->connections ) && is_array( $body->connections ) ) {
foreach ( $body->connections as $connection ) {
if ( 'instagram-basic-display' === $connection->service && 'ok' === $connection->status ) {
$connections[] = array(
'token' => (string) $connection->ID,
'username' => $connection->external_name,
);
}
}
}
return $connections;
Expand Down
12 changes: 12 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

**This is a list detailing changes for all Jetpack releases.**

= 8.7.1 =

* Release date: July 14, 2020

**Bug fixes**

* Autoloader: avoid PHP warning on sites with an invalid `active_plugins` option.
* Backwards Compatibility: Prevent fatal errors on themes relying on a deprecated static method.
* Blocks: show a loading spinner when unrolling Twitter threads on WordPress 5.3.
* General: prevent PHP notices with the Contact Form feature, Sharing feature, and the Latest Instagram Galleries block.
* Sharing: create proper Open Graph Description tag when a post starts with an image.

= 8.7 =

* Release date: July 7, 2020
Expand Down
6 changes: 5 additions & 1 deletion extensions/blocks/gathering-tweetstorms/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const addTweetstormToTweets = blockSettings => {
</ToolbarGroup>
) : (
<Toolbar
className="gathering-tweetstorms__embed-toolbar"
controls={ [
{
title: __(
Expand All @@ -71,10 +72,13 @@ const addTweetstormToTweets = blockSettings => {
extraProps: {
className: 'gathering-tweetstorms__embed-toolbar-button',
children: __( 'Unroll', 'jetpack' ),
disabled: isGatheringStorm,
},
},
] }
/>
>
{ isGatheringStorm && <Spinner /> }
</Toolbar>
) }
</BlockControls>
<CoreTweetEdit { ...props } />
Expand Down
36 changes: 18 additions & 18 deletions functions.opengraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,27 +456,9 @@ function jetpack_og_get_image_gravatar( $email, $width ) {
* @return string $description Cleaned up description string.
*/
function jetpack_og_get_description( $description = '', $data = null ) {
// Remove links.
$description = preg_replace(
'@https?://[\S]+@',
'',
$description
);

// Remove shortcodes.
$description = strip_shortcodes( $description );

// Remove tags such as <style or <script.
$description = wp_strip_all_tags( $description );

/*
* Limit things to a small text blurb.
* There isn't a hard limit set by Facebook, so let's rely on WP's own limit.
* (55 words or the localized equivalent).
* This limit can be customized with the wp_trim_words filter.
*/
$description = wp_trim_words( $description );

/*
* Clean up any plain text entities left into formatted entities.
* Intentionally not using a filter to prevent pollution.
Expand All @@ -491,6 +473,24 @@ function jetpack_og_get_description( $description = '', $data = null ) {
array()
);

// Remove shortcodes.
$description = strip_shortcodes( $description );

// Remove links.
$description = preg_replace(
'@https?://[\S]+@',
'',
$description
);

/*
* Limit things to a small text blurb.
* There isn't a hard limit set by Facebook, so let's rely on WP's own limit.
* (55 words or the localized equivalent).
* This limit can be customized with the wp_trim_words filter.
*/
$description = wp_trim_words( $description );

// Let's set a default if we have no text by now.
if ( empty( $description ) ) {
/**
Expand Down
4 changes: 2 additions & 2 deletions jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: 8.7.0.1
* Version: 8.7.1
* Author URI: https://jetpack.com
* License: GPL2+
* Text Domain: jetpack
Expand All @@ -17,7 +17,7 @@

define( 'JETPACK__MINIMUM_WP_VERSION', '5.3' );
define( 'JETPACK__MINIMUM_PHP_VERSION', '5.6' );
define( 'JETPACK__VERSION', '8.7.0.1' );
define( 'JETPACK__VERSION', '8.7.1' );
define( 'JETPACK_MASTER_USER', true );
define( 'JETPACK__API_VERSION', 1 );
define( 'JETPACK__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
Expand Down

0 comments on commit 1e03131

Please sign in to comment.