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

WordPress Trac noreply at wordpress.org
Sun Nov 9 22:41:19 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):

 Replying to [comment:2 westonruter],
 What i'm saying is the problem is in the PHP code not JS, cause when i
 comment the lines where the root variable returned where no value entered
 (null), it works for null value but also affect other customizer
 functions, i think the same function is used by other functions in a
 different ways O.o

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

 I know its not good idea for others settings where it have to be a value
 but for the Color settings i believe we need to consider the empty
 (transparent) value.


 To demonstrate the problem, go the customizer and set a color (BG for e.g)
 and try to make it transparent by clearing or deleting the HEX color code,
 and you'll see that you're no more able to change it forever :(

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


More information about the wp-trac mailing list