Skip to content

Commit

Permalink
First posts stream: Update option only on Atomic (#33286)
Browse files Browse the repository at this point in the history
* extra is atomic check

* changelog

---------

Co-authored-by: Andrés Blanco <email@gmail.com>

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/6303388268
  • Loading branch information
andres-blanco authored and matticbot committed Sep 25, 2023
1 parent 70cc4f4 commit 96a6f16
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This is an alpha version! The changes listed here are not final.
- Support Videopress tasks on the Customer Home Launchpad

### Fixed
- Added check for jetpack sync option to only run on Atomic
- Locked Mode: Now applies cap filter in REST API requests as well

## [4.10.0] - 2023-09-19
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
* @param array $allowed_options The allowed options.
*/
function register_first_posts_stream_options_sync( $allowed_options ) {
// We are not either in Simple or Atomic.
if ( ! class_exists( 'Automattic\Jetpack\Status\Host' ) ) {
return $allowed_options;
}

if ( ! ( new Automattic\Jetpack\Status\Host() )->is_woa_site() ) {
return $allowed_options;
}

if ( ! is_array( $allowed_options ) ) {
return $allowed_options;
}
Expand Down
6 changes: 3 additions & 3 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"packages": [
{
"name": "automattic/jetpack-mu-wpcom",
"version": "4.11.0-alpha.1695664729",
"version_normalized": "4.11.0.0-alpha1695664729",
"version": "4.11.0-alpha.1695666572",
"version_normalized": "4.11.0.0-alpha1695666572",
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-mu-wpcom",
"reference": "faa2152ae969bba2de82559e000b610da41004e5"
"reference": "6ae813d70fca2c523f93df4d638c930fdb0ac3bd"
},
"require-dev": {
"automattic/jetpack-changelogger": "^3.3.10-alpha",
Expand Down
6 changes: 3 additions & 3 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
),
'versions' => array(
'automattic/jetpack-mu-wpcom' => array(
'pretty_version' => '4.11.0-alpha.1695664729',
'version' => '4.11.0.0-alpha1695664729',
'reference' => 'faa2152ae969bba2de82559e000b610da41004e5',
'pretty_version' => '4.11.0-alpha.1695666572',
'version' => '4.11.0.0-alpha1695666572',
'reference' => '6ae813d70fca2c523f93df4d638c930fdb0ac3bd',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../automattic/jetpack-mu-wpcom',
'aliases' => array(),
Expand Down

0 comments on commit 96a6f16

Please sign in to comment.