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
Color Palette support setup with single array argument (backwards compatible) #7619
This code is backwards compatible with current implementation (colors are passed as multiple parameters/arguments).
Fixing issue #6425
This was referenced
Jun 28, 2018
This PR seems to work fine in my tests
I'm in favor of this change, as it does make things easier for theme developers.
It does make it a bit complex for Gutenberg itself (i.e. this PR), I really liked from the original approach that you could simply call
get_theme_support( 'editor-color-palette' ) and have the final result to use, without needing to do some
$theme_support = $theme_support. But we wanna make things easy for theme developers, not ourselves, so +1.