Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Block Directory: Update the regular expression that determines whether the plugin is using an img URL or an icon slug. #19316
The block directory API returns either an icon slug or a URL for the plugin's icon. This PR changes the regular expression to allow for an optional query string after the image URL. A detailed explanation of the issue can be found here: #19264 .
How has this been tested?
Unit tests have been added to test this change.
Currently testing 3 cases:
Types of changes
This is a bug fix. The current regular expression does not account for a query string being added by the CDN serving the plugins and its assets. Read more here: #19264