Skip to content

Commit

Permalink
Jetpack 14.0-a.5
Browse files Browse the repository at this point in the history
  • Loading branch information
kraftbj authored and matticbot committed Oct 16, 2024
1 parent b8ce1c3 commit 1f5bc28
Show file tree
Hide file tree
Showing 23 changed files with 44 additions and 47 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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

## 14.0-a.5 - 2024-10-16
### Other changes <!-- Non-user-facing changes go here. This section will not be copied to readme.txt. -->
- Related Posts: refine how related posts are made available on singular views in block themes. [#39784]

## 14.0-a.3 - 2024-10-14
### Enhancements
- Newsletter: Update the default "reply to" setting value from not allowed to replies being posted as public comments. [#39657]
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"platform": {
"ext-intl": "0.0.0"
},
"autoloader-suffix": "f11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3",
"autoloader-suffix": "f11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5",
"allow-plugins": {
"automattic/jetpack-autoloader": true,
"automattic/jetpack-composer-plugin": true
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: Security, performance, and marketing tools made by WordPress experts. Jetpack keeps your site protected so you can focus on more important things.
* Author: Automattic
* Version: 14.0-a.3
* Version: 14.0-a.5
* Author URI: https://jetpack.com
* License: GPL2+
* Text Domain: jetpack
Expand Down Expand Up @@ -34,7 +34,7 @@

define( 'JETPACK__MINIMUM_WP_VERSION', '6.5' );
define( 'JETPACK__MINIMUM_PHP_VERSION', '7.0' );
define( 'JETPACK__VERSION', '14.0-a.3' );
define( 'JETPACK__VERSION', '14.0-a.5' );

/**
* Constant used to fetch the connection owner token
Expand Down
12 changes: 10 additions & 2 deletions modules/related-posts/jetpack-related-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -1883,12 +1883,20 @@ protected function log_click( $post_id, $to_post_id, $link_position ) { // phpcs
/**
* Determines if the current post is able to use related posts.
*
* @since 14.0 Checks for singular instead of single to allow usage on non-posts CPTs.
* @since 14.0 Checks for singular instead of single to allow usage on non-posts CPTs in block themes.
* @uses self::get_options, is_admin, is_singular, apply_filters
* @return bool
*/
protected function enabled_for_request() {
$enabled = is_singular()
/*
* On block themes, allow usage on any singular view (post, page, CPT).
* On classic themes, only allow usage on single posts by default.
*/
$enabled_on_singular_views = wp_is_block_theme()
? is_singular()
: is_single();

$enabled = $enabled_on_singular_views
&& ! is_attachment()
&& ! is_admin()
&& ! is_embed()
Expand Down
19 changes: 2 additions & 17 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -326,23 +326,8 @@ Jetpack Backup can do a full website migration to a new host, migrate theme file


== Changelog ==
### 14.0-a.3 - 2024-10-14
#### Enhancements
- Newsletter: Update the default "reply to" setting value from not allowed to replies being posted as public comments.
- Social: Add Bluesky to social previews.

#### Improved compatibility
- Image CDN: URL encode image path parts for RSS feed compatibility.
- Related Posts: Allow Related Posts on non-post CPTs where the block is already able to be used.

#### Bug fixes
- Blocks: Fix rendering of the goodreads block to avoid PHP warnings caused by missing attributes.
- Blocks: Render the slideshow block correctly inside an iframe editor.
- Contact Form: Ensure that submitted forms can only be accessed by logged in users allowed to view form submissions.
- General: Only include `wp-polyfill` as a script dependency when needed.
- Newsletter: Ensure `Enable featured image on your new post emails` setting displays the right value.
- Sharing: Ensure the sharing settings can be accessed even when a user is not connected to WordPress.com.
- Stats: Fix top post card on the Insight page.
### 14.0-a.5 - 2024-10-16
Fix: do not include Related Posts on non-post posts on classic themes.

--------

Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitf11009ded9fc4592b6a05b61ce272b3c_jetpack14_0_a_3::getLoader();
return ComposerAutoloaderInitf11009ded9fc4592b6a05b61ce272b3c_jetpack14_0_a_5::getLoader();
2 changes: 1 addition & 1 deletion vendor/autoload_packages.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3\al3_1_1;
namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5\al3_1_1;

// phpcs:ignore

Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInitf11009ded9fc4592b6a05b61ce272b3c_jetpack14_0_a_3
class ComposerAutoloaderInitf11009ded9fc4592b6a05b61ce272b3c_jetpack14_0_a_5
{
private static $loader;

Expand All @@ -24,17 +24,17 @@ public static function getLoader()

require __DIR__ . '/platform_check.php';

spl_autoload_register(array('ComposerAutoloaderInitf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInitf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitf11009ded9fc4592b6a05b61ce272b3c_jetpack14_0_a_3::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitf11009ded9fc4592b6a05b61ce272b3c_jetpack14_0_a_5::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);

$filesToLoad = \Composer\Autoload\ComposerStaticInitf11009ded9fc4592b6a05b61ce272b3c_jetpack14_0_a_3::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInitf11009ded9fc4592b6a05b61ce272b3c_jetpack14_0_a_5::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInitf11009ded9fc4592b6a05b61ce272b3c_jetpack14_0_a_3
class ComposerStaticInitf11009ded9fc4592b6a05b61ce272b3c_jetpack14_0_a_5
{
public static $files = array (
'3773ef3f09c37da5478d578e32b03a4b' => __DIR__ . '/../..' . '/jetpack_vendor/automattic/jetpack-assets/actions.php',
Expand Down Expand Up @@ -506,9 +506,9 @@ class ComposerStaticInitf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitf11009ded9fc4592b6a05b61ce272b3c_jetpack14_0_a_3::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitf11009ded9fc4592b6a05b61ce272b3c_jetpack14_0_a_3::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitf11009ded9fc4592b6a05b61ce272b3c_jetpack14_0_a_3::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitf11009ded9fc4592b6a05b61ce272b3c_jetpack14_0_a_5::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitf11009ded9fc4592b6a05b61ce272b3c_jetpack14_0_a_5::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitf11009ded9fc4592b6a05b61ce272b3c_jetpack14_0_a_5::$classMap;

}, null, ClassLoader::class);
}
Expand Down
2 changes: 1 addition & 1 deletion vendor/jetpack-autoloader/class-autoloader-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3\al3_1_1;
namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5\al3_1_1;

// phpcs:ignore

Expand Down
2 changes: 1 addition & 1 deletion vendor/jetpack-autoloader/class-autoloader-locator.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3\al3_1_1;
namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5\al3_1_1;

// phpcs:ignore

Expand Down
2 changes: 1 addition & 1 deletion vendor/jetpack-autoloader/class-autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3\al3_1_1;
namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5\al3_1_1;

// phpcs:ignore

Expand Down
2 changes: 1 addition & 1 deletion vendor/jetpack-autoloader/class-container.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3\al3_1_1;
namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5\al3_1_1;

// phpcs:ignore

Expand Down
2 changes: 1 addition & 1 deletion vendor/jetpack-autoloader/class-hook-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3\al3_1_1;
namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5\al3_1_1;

// phpcs:ignore

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3\al3_1_1;
namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5\al3_1_1;

// phpcs:ignore

Expand Down
2 changes: 1 addition & 1 deletion vendor/jetpack-autoloader/class-manifest-reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3\al3_1_1;
namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5\al3_1_1;

// phpcs:ignore

Expand Down
2 changes: 1 addition & 1 deletion vendor/jetpack-autoloader/class-path-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3\al3_1_1;
namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5\al3_1_1;

// phpcs:ignore

Expand Down
2 changes: 1 addition & 1 deletion vendor/jetpack-autoloader/class-php-autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3\al3_1_1;
namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5\al3_1_1;

// phpcs:ignore

Expand Down
2 changes: 1 addition & 1 deletion vendor/jetpack-autoloader/class-plugin-locator.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3\al3_1_1;
namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5\al3_1_1;

// phpcs:ignore

Expand Down
2 changes: 1 addition & 1 deletion vendor/jetpack-autoloader/class-plugins-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3\al3_1_1;
namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5\al3_1_1;

// phpcs:ignore

Expand Down
2 changes: 1 addition & 1 deletion vendor/jetpack-autoloader/class-shutdown-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3\al3_1_1;
namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5\al3_1_1;

// phpcs:ignore

Expand Down
2 changes: 1 addition & 1 deletion vendor/jetpack-autoloader/class-version-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3\al3_1_1;
namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5\al3_1_1;

// phpcs:ignore

Expand Down
2 changes: 1 addition & 1 deletion vendor/jetpack-autoloader/class-version-selector.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_3\al3_1_1;
namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ14_0_a_5\al3_1_1;

// phpcs:ignore

Expand Down

0 comments on commit 1f5bc28

Please sign in to comment.