Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
WordPress
/
performance
Public
Notifications
You must be signed in to change notification settings
Fork
167
Star
463
Code
Issues
122
Pull requests
60
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Dominant Color: Tidy Up and Add GD tests
- #2527
#2527
Merged
westonruter
merged 14 commits into
WordPress:trunk
WordPress/performance:trunk
from
nickchomey:fix/tidy-and-gd-tests
nickchomey/performance:fix/tidy-and-gd-tests
Copy head branch name to clipboard
Aug 31, 2026
Conversation
Commits
14
(14)
Checks
Files changed
Merged
Dominant Color: Tidy Up and Add GD tests
#2527
westonruter
merged 14 commits into
WordPress:trunk
WordPress/performance:trunk
from
nickchomey:fix/tidy-and-gd-tests
nickchomey/performance:fix/tidy-and-gd-tests
Copy head branch name to clipboard
Commits
Commits on Aug 28, 2026
allow falling back to original image if no subsizes available
nickchomey
committed
715f0d5
View commit details
Copy full SHA for 715f0d5
Browse repository at this point
always override core image editor classes, such that same editor is used for initial image processing and dominant colours
nickchomey
committed
27f544e
View commit details
Copy full SHA for 27f544e
Browse repository at this point
remove redundant fn call
nickchomey
committed
b0768fa
View commit details
Copy full SHA for b0768fa
Browse repository at this point
abstract the get metadata functions
nickchomey
committed
49bc0fd
View commit details
Copy full SHA for 49bc0fd
Browse repository at this point
Remove unnecessary wp_maybe_generate_attachment_metadata calls. They never do anything in any test
nickchomey
committed
2f26844
View commit details
Copy full SHA for 2f26844
Browse repository at this point
use create rather than create_upload_object, which prevents calling dominant_color_get_dominant_color_data. So not redundant to call it afterwards
nickchomey
committed
593a8b4
View commit details
Copy full SHA for 593a8b4
Browse repository at this point
require the editor classes, just in case (seems to be missing when the GD tests tun, though not for imagick)
nickchomey
committed
b6768f0
View commit details
Copy full SHA for b6768f0
Browse repository at this point
implement GD tests
nickchomey
committed
9f94ae1
View commit details
Copy full SHA for 9f94ae1
Browse repository at this point
return raw rgb rather than hex. This will facilitate the lqip gradient stuff coming in other PR. Also, cleaner to just convert in one place for all editors
nickchomey
committed
8d5f9de
View commit details
Copy full SHA for 8d5f9de
Browse repository at this point
fix linting
nickchomey
committed
a226e02
View commit details
Copy full SHA for a226e02
Browse repository at this point
Commits on Aug 29, 2026
Address Copilot review comments on PR #2527
Show description for cd27d47
nickchomey
committed
cd27d47
View commit details
Copy full SHA for cd27d47
Browse repository at this point
Commits on Aug 30, 2026
revert get_dominant_color to returning hex rather than array - broke back compat and wasn't even necessary in the end
nickchomey
committed
63ae8fa
View commit details
Copy full SHA for 63ae8fa
Browse repository at this point
Commits on Aug 31, 2026
address review comments
nickchomey
committed
df0de11
View commit details
Copy full SHA for df0de11
Browse repository at this point
Apply batched suggestions from code review
Show description for 61e31fc
nickchomey
and
westonruter
authored
61e31fc
View commit details
Copy full SHA for 61e31fc
Browse repository at this point
You can’t perform that action at this time.