[wp-trac] [WordPress Trac] #28400: Making if blocks more clear in customize.php

WordPress Trac noreply at wordpress.org
Thu May 29 15:17:17 UTC 2014


#28400: Making if blocks more clear in customize.php
----------------------------+----------------------
 Reporter:  BFTrick         |       Owner:
     Type:  enhancement     |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Administration  |     Version:  trunk
 Severity:  normal          |  Resolution:  invalid
 Keywords:                  |     Focuses:
----------------------------+----------------------
Changes (by SergeyBiryukov):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 > In `customize.php` there are two separate if statements that check for
 opposite values right after one another.

 That's not quite correct. The second statement also applies if
 [http://codex.wordpress.org/Function_Reference/wp_validate_redirect
 wp_validate_redirect()] returned an empty string.

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


More information about the wp-trac mailing list