Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #47692, comment 10


Ignore:
Timestamp:
05/12/2020 03:30:35 PM (4 years ago)
Author:
Lwangaman
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #47692, comment 10

    v1 v2  
    2525                else if( ! empty( $this->options ) ){
    2626                        foreach ( $this->options as $label => $value ) {
    27                                 if(is_array($value)){
     27                                if(is_array($value) && !empty( $value ) ){
    2828                                        echo '<optgroup label="' . esc_attr( $label ) . '">';
    2929                                        foreach( $value as $optgrouplabel => $optgroupvalue ){