[wp-trac] [WordPress Trac] #30280: Clearing color in customizer not working

WordPress Trac noreply at wordpress.org
Thu Nov 6 22:54:56 UTC 2014


#30280: Clearing color in customizer not working
--------------------------+------------------------------
 Reporter:  sidati        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Customize     |     Version:  4.0
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by sidati):

 If we can just delete theses lines :

 {{{
 if ( ! isset( $value ) )
     return $root;
 elseif ( empty( $keys ) ) // If there are no keys, we're replacing the
 root.
     return $value;
 }}}


 and replace it with :

 {{{
 if ( empty( $keys ) ) // If there are no keys, we're replacing the root.
      return $value;
 }}}

 so we can save any value entered even the "null" value.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30280#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list