Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.0.7 #83

Merged
merged 9 commits into from
Apr 30, 2024
Merged

Release 2.0.7 #83

merged 9 commits into from
Apr 30, 2024

Conversation

DevinWalker
Copy link
Owner

Description

Resolves:

How Has This Been Tested?

  • Manually

Screenshots (jpeg or gifs if applicable):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows has proper inline documentation.

…Refactor admin.js for cleaner code and improved functionality

Changes in code include adjusting indentation and spacing as well as importing addQueryArgs from '@wordpress/url'. Moreover, the code for checking if images exist and setting image URLs has been modified for efficiency. Lastly, minor changes were made in the HTML part of the code like adding spaces before closing tags.
This commit updates the WP Rollback plugin version to 2.0.7 and indicates compatibility with WordPress version 6.6. It includes changes to the plugin's description, along with the addition of bug fixes in the changelog. These fixes resolve an error with plain permalink websites and update the way the React app is loaded to suppress React 18+ warnings.
The code has been updated to import createRoot instead of render from '@wordpress/element' in admin.js of the wp-rollback plugin. Additionally, the domReady function has been refactored to use createRoot if available, otherwise it falls back to ReactDOM.render. This change improves the rendering process of the AdminPage.
The previous JSON configuration file for Prettier has been removed and replaced with a new JavaScript configuration file. This new configuration file imports the default settings from WordPress Scripts and applies some customisations, including a print width of 120 and disabling the use of tabs.
The minimum required WordPress version for plugin was updated from 5.0 to 6.0 for optimal compatibility. This change was necessary for the best compatibility with the new React components in the user interface.
Several changes were made to the .distignore, .prettierignore, .gitignore, and .editorconfig files in this commit. These changes mainly consist of additions and removals of files and directories to be ignored. Also a max_line_length attribute was added to .editorconfig for customization purpose.
The .distignore file has been updated to have separate entries for package.json and package-lock.json rather than them being on the same line. Additionally, the .gitignore file has been amended to remove coverage and unnecessary empty lines, and to include .idea.
Fix rest_no_route error when plain (ugly) permalink structure is in use
@DevinWalker DevinWalker merged commit d66dabc into master Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant