When upgrading from wordpress 5.5.1 to wordpress 6.1.1, the custom attributes defined for list block in wordpress 5 are not retained while migrating the list block.
Step-by-step reproduction instructions
Run wordpress 6.1.1
Open the code editor and paste the below html created for wp5 list blocks
Switch to visual editor and let wordpress create the blocks
Open the code editor again and check for someCustomAttribute in the wp:list attributes,
or open the console and execute below command
wp.data.select('core/editor').getBlocks().attributes
The code editor in wordpress 6 shows the below html and doesn't have the custom attribute anymore
### Screenshots, screen recording, code snippet
_No response_
### Environment info
- Wordpress 6.1.1
- Gutenberg 14.3.1
- Chrome Version 124.0.6367.119 (Official Build) (arm64)
- macOS 14.3.1 (23D60)
### Please confirm that you have searched existing issues in the repo.
Yes
### Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Description
When upgrading from wordpress 5.5.1 to wordpress 6.1.1, the custom attributes defined for list block in wordpress 5 are not retained while migrating the list block.
Step-by-step reproduction instructions
someCustomAttribute
in the wp:list attributes, or open the console and execute below commandwp.data.select('core/editor').getBlocks().attributes
The code editor in wordpress 6 shows the below html and doesn't have the custom attribute anymore