Skip to content

Commit 00b2efb

Browse files
authored
fix(palette): Fix improper return on palette loop (#48)
1 parent 8037afc commit 00b2efb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin Name: Advanced Custom Fields: Editor Palette Field
55
* Plugin URI: https://github.com/log1x/acf-editor-palette
66
* Description: A Gutenberg-like editor palette color picker field for Advanced Custom Fields.
7-
* Version: 1.1.5
7+
* Version: 1.1.6
88
* Author: Brandon Nifong
99
* Author URI: https://github.com/log1x
1010
*/

src/Concerns/Palette.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function palette($color = null)
3333

3434
foreach ($palette as $value) {
3535
if (empty($value['slug'])) {
36-
return;
36+
continue;
3737
}
3838

3939
$colors = array_merge($colors, [

0 commit comments

Comments
 (0)