|
@@ -38,7 +38,7 @@ class GlobalStylesColorPalettes {
|
|
|
$custom_palette_setting = array();
|
|
|
foreach ( $custom_palette['colors'] as $color_slug => $color ) {
|
|
|
//the alternative palettes need to have the same color mapping as the default one
|
|
|
- if(isset($default_palette_setting[$color_slug])){
|
|
|
+ if ( isset( $default_palette_setting[ $color_slug ] ) ) {
|
|
|
$custom_palette_setting[ $color_slug ] = $color;
|
|
|
}
|
|
|
}
|
|
@@ -86,8 +86,8 @@ class GlobalStylesColorPalettes {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- function sanitize_color_palette( $palette ) {
|
|
|
- return sanitize_title($palette);
|
|
|
+ static function sanitize_color_palette( $palette ) {
|
|
|
+ return sanitize_title( $palette );
|
|
|
}
|
|
|
}
|
|
|
|