Repository navigation
3.4.0 - #1388
Open
gabrielcld2 wants to merge 80 commits into
Open
3.4.0#1388gabrielcld2 wants to merge 80 commits into
gabrielcld2 wants to merge 80 commits into
Conversation
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.16.1 to 1.16.2. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.16.1...v1.16.2) --- updated-dependencies: - dependency-name: follow-redirects dependency-version: 1.16.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [eslint](https://github.com/eslint/eslint) from 10.13.0 to 10.14.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](eslint/eslint@v10.13.0...v10.14.0) --- updated-dependencies: - dependency-name: eslint dependency-version: 10.14.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [globals](https://github.com/sindresorhus/globals) from 17.13.0 to 17.14.0. - [Release notes](https://github.com/sindresorhus/globals/releases) - [Commits](sindresorhus/globals@v17.13.0...v17.14.0) --- updated-dependencies: - dependency-name: globals dependency-version: 17.14.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 7.2.3 to 7.3.1. - [Release notes](https://github.com/webpack/webpack-cli/releases) - [Changelog](https://github.com/webpack/webpack-cli/blob/main/CHANGELOG.md) - [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@7.2.3...webpack-cli@7.3.1) --- updated-dependencies: - dependency-name: webpack-cli dependency-version: 7.3.1 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [php-stubs/woocommerce-stubs](https://github.com/php-stubs/woocommerce-stubs) from 11.2.0 to 11.2.1. - [Commits](php-stubs/woocommerce-stubs@v11.2.0...v11.2.1) --- updated-dependencies: - dependency-name: php-stubs/woocommerce-stubs dependency-version: 11.2.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan-phar-composer-source) from 2.3.2 to 2.3.4. - [Commits](https://github.com/phpstan/phpstan-phar-composer-source/commits) --- updated-dependencies: - dependency-name: phpstan/phpstan dependency-version: 2.3.4 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Add an e2e spec for the three storage settings. It checks that "Cloudinary only" keeps the local files during the delete delay and removes them after it, that "Cloudinary and WordPress" downloads the full-quality files again, and that the low resolution mode keeps a smaller local copy. In each mode the image must still load from Cloudinary. Cleanup removes the Cloudinary assets through the API. Deleting an attachment removes its asset only when the plugin thinks it is synced, and after a storage change it is not.
Add an e2e spec that deletes a synced attachment through the REST API and through "Delete permanently" in the Media Library, and checks through the Admin API that its Cloudinary asset is removed. The spec syncs only its own attachments, and cleanup removes any asset a failed test leaves.
Fail at once when a sync saves an error, check the size files in the low resolution mode, and destroy the suffixed public ID as delete sync does.
test(e2e): Cover the media storage modes
test(e2e): Cover delete sync to Cloudinary
Move galleryBlock(), openGallery() and collectImageUrls() out of the gallery delivery spec into tests/e2e/utils/gallery.js, so the custom domain spec can render the Gallery block the same way.
- ensureCloudinaryConnected() accepts { cname, privateCdn } and adds
them to the connection string. It now fails when the plugin does
not save the new string.
- expectCloudinaryUrl() accepts { host, cloudName, privateCdn }.
- routeCnameToCloudinary() sends requests for a fake custom domain on
to res.cloudinary.com, so the images still load.
Connect with a fake custom domain and check that the image block, the Gallery widget and the Cloudinary video player use it. Check that private_cdn=false keeps the cloud name in the path. Restore the plain connection in afterAll. Refs WPP-1240
Replace the local saveSettings() copy with the one in tests/e2e/utils/settings.js.
Switch to private_cdn=false in a describe block's beforeAll and back in its afterAll, so a test added later does not inherit it. Add a gallery test for private_cdn=false as test.fixme. Gallery always passes privateCdn: true to the widget when a custom domain is set, so the widget leaves the cloud name out of its URLs and no image loads. Remove exports that nothing imports.
Lint failed in CI because the gallery fixme test was formatted with an older local prettier than the one in package-lock.json.
…-e2e test(e2e): Cover delivery through a custom domain (CNAME)
…lop/eslint-10.14.0 chore(deps-dev): bump eslint from 10.13.0 to 10.14.0
…lop/globals-17.14.0 chore(deps-dev): bump globals from 17.13.0 to 17.14.0
…lop/webpack-cli-7.3.1 chore(deps-dev): bump webpack-cli from 7.2.3 to 7.3.1
…php-stubs/woocommerce-stubs-11.2.1 chore(deps-dev): bump php-stubs/woocommerce-stubs from 11.2.0 to 11.2.1
…phpstan/phpstan-2.3.4 chore(deps-dev): bump phpstan/phpstan from 2.3.2 to 2.3.4
…ow-redirects-1.16.2 chore(deps): bump follow-redirects from 1.16.1 to 1.16.2
The Product Gallery library was only loaded in the outer admin document, while the block container lives in the editor canvas iframe, so the widget never found it and the preview stayed blank. Load the library in the editor canvas through enqueue_block_assets and render with the widget of the window that holds the container, with the config rebuilt in that frame so it passes the widget's validation. Also parse the block's Custom Settings JSON before merging it over the config, as the front end does, so the preview matches the published gallery.
The front end always renders a gallery with the connected cloud name and custom domain settings. The editor preview only got them on new blocks, so blocks with no or a stale cloud name showed broken images, and existing blocks ignored the custom domain.
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) from 5.11.2 to 5.12.0. - [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases) - [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md) - [Commits](NaturalIntelligence/fast-xml-parser@v5.11.2...v5.12.0) --- updated-dependencies: - dependency-name: fast-xml-parser dependency-version: 5.12.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
- Always stop the spinner and log an error when the preview fails to render, and warn when the library is missing from the editor canvas. - Add CLD_GALLERY_CONFIG once based on the script's inline data rather than on whether the library is already enqueued, so enqueuing it for the canvas first can't drop the config. - Share the library enqueue arguments in a helper. - Build the delivery settings in one method used by both the front end and the editor preview, instead of reading them from the filtered gallery config in the editor. - Skip the editor preview e2e test when the editor is not iframed.
- Save the term transformations on edit_{$taxonomy}, before edited_term and
saved_term, so WPML copies the new values to translations on the same save
regardless of the hook it syncs term meta on.
- Swap a gallery asset for its contextualized attachment using the same rule
as the rest of the delivery (Media::cloudinary_id()), which also handles
queueing the sync without repeated writes.
- Copy the term transformations ordering to translated posts, and map its
terms to the post's language through a new cloudinary_contextualized_term
filter.
…itor-preview Fix the Cloudinary Gallery block preview in the iframed editor
The CDN now sends Access-Control-Allow-Origin, so the plugin loads the script from media-library.cloudinary.com again and the vendored copy is no longer used.
- Declare _cloudinary_featured_overwrite as copy in wpml-config.xml, so the "Overwrite Global Transformations" flag of a post's featured image applies to its translations. - WPML only copies the post meta that changed before its save_post handler, and the block editor saves the flag through the REST API after it. Sync the flag through wpml_sync_custom_field when it changes on an original post.
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 29.17.0 to 29.17.1. - [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases) - [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md) - [Commits](jest-community/eslint-plugin-jest@v29.17.0...v29.17.1) --- updated-dependencies: - dependency-name: eslint-plugin-jest dependency-version: 29.17.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 17.6.0 to 17.6.1. - [Release notes](https://github.com/lint-staged/lint-staged/releases) - [Changelog](https://github.com/lint-staged/lint-staged/blob/main/CHANGELOG.md) - [Commits](lint-staged/lint-staged@v17.6.0...v17.6.1) --- updated-dependencies: - dependency-name: lint-staged dependency-version: 17.6.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@playwright/test](https://github.com/microsoft/playwright) from 1.65.0 to 1.65.1. - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](microsoft/playwright@v1.65.0...v1.65.1) --- updated-dependencies: - dependency-name: "@playwright/test" dependency-version: 1.65.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan-phar-composer-source) from 2.3.5 to 2.3.6. - [Commits](https://github.com/phpstan/phpstan-phar-composer-source/commits) --- updated-dependencies: - dependency-name: phpstan/phpstan dependency-version: 2.3.6 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [php-stubs/woocommerce-stubs](https://github.com/php-stubs/woocommerce-stubs) from 11.2.2 to 11.3.0. - [Commits](php-stubs/woocommerce-stubs@v11.2.2...v11.3.0) --- updated-dependencies: - dependency-name: php-stubs/woocommerce-stubs dependency-version: 11.3.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
…ibrary-script Load the Media Library widget script from the CDN again
…lop/eslint-plugin-jest-29.17.1 chore(deps-dev): bump eslint-plugin-jest from 29.17.0 to 29.17.1
…lop/playwright/test-1.65.1 chore(deps-dev): bump @playwright/test from 1.65.0 to 1.65.1
…phpstan/phpstan-2.3.6 chore(deps-dev): bump phpstan/phpstan from 2.3.5 to 2.3.6
…php-stubs/woocommerce-stubs-11.3.0 chore(deps-dev): bump php-stubs/woocommerce-stubs from 11.2.2 to 11.3.0
Bumps [eslint](https://github.com/eslint/eslint) from 10.14.0 to 10.15.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](eslint/eslint@v10.14.0...v10.15.0) --- updated-dependencies: - dependency-name: eslint dependency-version: 10.15.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
…lop/eslint-10.15.0 chore(deps-dev): bump eslint from 10.14.0 to 10.15.0
…lop/lint-staged-17.6.1 chore(deps-dev): bump lint-staged from 17.6.0 to 17.6.1
Every settings save now carries the whole allowlisted feature configuration as flat fields, the same as feature_config_snapshot, next to page and changed_keys. Each save is then a baseline, and changed_keys shows which settings were deliberately overridden. This replaces the nested changed_values object.
- Select and radio values are only sent when they are one of the setting's options, and as "other" otherwise, since they are only sanitised as text and filters can return anything. - The lazy-loading threshold is lowercased, so "100PX" is kept. - "Max images" is marked as derived in the allowlist, since the stored value is never sent. - settings_saved no longer builds the feature configuration while analytics are disabled. - The concurrency test for the first snapshot now really reaches the add_option() gate. - The snapshot docs now say it is re-sent on every account change, and where the setup/upgrade trigger can be wrong.
Rebuild the committed assets from the current lockfile. The bundles still contained @wordpress/components 43. They now use @wordpress/components 44.0.0, @wordpress/ui 0.26.0 and @wordpress/dataviews 22.0.0, the minimum versions in the 7.2 dev note on CSS module class name collisions. gallery-ui.css bundles the @wordpress/components styles. Run wp-env and CI on WordPress 7.2 (RC2 until 7.2 is released).
…ansformations Fix WPML compatibility for the gallery block and category transformations
… saves Saves of the connection, sync, gallery or extensions pages can't change the feature configuration, so their settings_saved events no longer carry it. Also documents one more race where the snapshot trigger can be upgrade instead of setup, corrects the comment on the flag's query cost, and restores shared settings in a finally block in the breakpoints test.
Ensure compatibility with WordPress 7.2
Regenerate the translation template with grunt i18n.
…ravity-beta Remove the beta label from the Crop and Gravity control
…ption-analytics Analytics: Track feature adoption with setting values and a config snapshot
3.4.0 (develop to uat)
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.