Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Do not allow negative values in image dimensions #7656
This PR addresses #7637 which reports the allowance of negative values in width and height input fields belonging to the block inspector settings of the image block.
How has this been tested?
This has been tested by making sure a minimum value of
This was tested in WP 4.9.6, Gutenberg 3.1.1, Apache server with PHP 7.2.0 and MySQL 5.6.34. According to initial tests, the code doesn’t seem to affect any other areas.
Types of changes
This PR introduces a new attribute named