Skip to content

Commit ab9b738

Browse files
committed
#3993, #3992 - "No Field ID is set" message causing jumbled backend layout.
1 parent 63c0837 commit ab9b738

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

redux-core/inc/extensions/color_scheme/class-redux-extension-color-scheme.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,11 @@ public function set_defaults( array $defaults = array() ): array {
176176
*
177177
* @param array $data Field data.
178178
*
179-
* @return void
179+
* @return array
180180
* @since 1.0.0
181181
* @access public
182182
*/
183-
public function register_field( array $data ) {
183+
public function register_field( array $data ): array {
184184

185185
// Include color_scheme helper.
186186
include_once $this->extension_dir . 'color_scheme/inc/class-redux-color-scheme-functions.php';
@@ -200,6 +200,8 @@ public function register_field( array $data ) {
200200

201201
// Set upload_dir cookie.
202202
setcookie( 'redux_color_scheme_upload_dir', $upload_dir, 0, '/' );
203+
204+
return $data;
203205
}
204206

205207
/**

0 commit comments

Comments
 (0)