File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 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.6
7+ * Version: 1.1.7
88 * Author: Brandon Nifong
99 * Author URI: https://github.com/log1x
1010 */
Original file line number Diff line number Diff line change @@ -153,18 +153,7 @@ public function render_field_settings($field)
153153 }
154154
155155 foreach ($ palette as $ item ) {
156- $ colors [$ item ['slug ' ]] = sprintf (
157- '<span style="display: inline-block;
158- background-color: %s;
159- width: 1em;
160- height: 1em;
161- margin: 0 3px -3px;
162- border: 1px solid #ccd0d4;
163- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);"
164- ></span> %s ' ,
165- $ item ['color ' ],
166- $ item ['name ' ]
167- );
156+ $ colors [$ item ['slug ' ]] = $ item ['name ' ];
168157 }
169158
170159 acf_render_field_setting ($ field , [
You can’t perform that action at this time.
0 commit comments