Repository navigation
Ensure compatibility with WordPress 7.2 - #1377
Draft
utkarshcloudinary wants to merge 1 commit into
Draft
utkarshcloudinary wants to merge 1 commit into
utkarshcloudinary wants to merge 1 commit into
Conversation
The committed bundles were built before the latest wordpress group bump, so they still contained @wordpress/components 43. Rebuild them from the current lockfile (@wordpress/components 44.0.0, @wordpress/ui 0.26.0, @wordpress/dataviews 22.0.0). These are the minimum versions that the WordPress 7.2 dev note on CSS module class name collisions requires for plugins that bundle these packages. gallery-ui.css bundles the @wordpress/components styles.
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.
Approach
Tested the plugin against WordPress 7.2 and compared the results with 7.1.4. RC1 was not published yet when this was tested (
wordpress-7.2-RC1.zipreturned 404, and the update API reported7.2-beta5), so the tests ran on the latest nightly,7.2-beta5-65536. No regressions were found.Change
wordpressgroup bump and still contained@wordpress/components43. They now use@wordpress/components44.0.0,@wordpress/ui0.26.0 and@wordpress/dataviews22.0.0. These are the minimum versions in the 7.2 dev note Update bundled @wordpress/* packages … to fix CSS module class name collisions.css/gallery-ui.cssbundles the@wordpress/componentsstyles, so this applies to the plugin.Checked against the 7.2 dev notes; no change needed
dashicons-cloudinaryfont icon, which has nocore-adminreplacement, so it renders as before. The admin bar node has noab-icon, and no plugin CSS targets core menu or admin bar icons.PluginMoreMenuItemor theasprop.Animate,Divider,Surface,Tip, etc.),asButtons, thecssprop onVieworFontFamilyControl.NO_BACKSLASH_ESCAPESand the Abilities API: not used.Results on 7.2
JQMIGRATE: DEPRECATED: jQuery.proxy()on the Media grid. It comes from core. The plugin does not calljQuery.proxy().Already present on 7.1.4 (out of scope)
cloudinary/galleryuses blockapiVersion: 2, which has been deprecated since 6.9.src/js/components/video.jscallsgetMedia, which has been deprecated since 6.9.cloudinary.Cloudinary.new()in the video preview templates.src/js/wp-color-picker-alpha.jsandsrc/js/components/settings-page.js.Attempt to read property "post_title" on nullinphp/assets/class-rest-assets.phpwhen a cache point is missing.wp cloudinary syncpass, the relationship row keepspublic_idNULL until a later read. This can make the video delivery E2E test fail sometimes.Tested up toinreadme.txtis still 7.1.4. Bump it when 7.2 ships (Dec 8).QA notes
"core": "https://wordpress.org/wordpress-7.2-RC1.zip"(or the nightly build) in.wp-env.override.json, then runnpm run env:start.default, runnpx wp-env run tests-cli wp plugin activate cloudinary_wordpressandnpx wp-env run tests-cli wp theme activate twentytwentyfive.npm run test:unitandnpm run test:e2e.