We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
null
1 parent 84d1e10 commit 59f3798Copy full SHA for 59f3798
plugin.php
@@ -4,7 +4,7 @@
4
* Plugin Name: Advanced Custom Fields: Editor Palette Field
5
* Plugin URI: https://github.com/log1x/acf-editor-palette
6
* Description: A Gutenberg-like editor palette color picker field for Advanced Custom Fields.
7
- * Version: 1.1.2
+ * Version: 1.1.3
8
* Author: Brandon Nifong
9
* Author URI: https://github.com/log1x
10
*/
src/Field.php
@@ -70,7 +70,9 @@ protected function palette($color = null)
70
]);
71
}
72
73
- return ! empty($color) ? $colors[$color] : $colors;
+ return ! empty($color) ? (
74
+ $colors[$color] ?? null
75
+ ) : $colors;
76
77
78
/**
0 commit comments