WordPress.org

Make WordPress Core

Ticket #43113: class-wp-customize-nav-menu-item-setting.diff

File class-wp-customize-nav-menu-item-setting.diff, 579 bytes (added by lrdn, 2 years ago)
  • wp-includes/customize/class-wp-customize-nav-menu-item-setting.php

     
    254254                        $value['type_label'] = $this->get_type_label( (object) $value );
    255255                }
    256256
     257                if ( ! empty( $value['classes'] ) && ! is_array( $value['classes'] )) {
     258                        $value['classes'] = explode( ' ' , $value['classes'] );
     259                }
     260
    257261                return $value;
    258262        }
    259263