[wp-trac] [WordPress Trac] #20392: user-profile.js causing Javascript error in user-new.php
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 9 22:27:11 UTC 2012
#20392: user-profile.js causing Javascript error in user-new.php
--------------------------+-----------------------
Reporter: pbiron | Owner: azaozz
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.4
Component: Users | Version: 3.3.1
Severity: normal | Resolution:
Keywords: 2nd-opinion |
--------------------------+-----------------------
Comment (by azaozz):
Replying to [comment:6 SergeyBiryukov]:
> `return` seems a bit more readable than a long `if` block.
Yes but this is in an anonymous wrapper function that does several things.
If it's ever extended to include another jQuery chain, we will have to be
careful to add it above or below that return depending where it should
run. That's seems clearer with an `if()` block imho.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20392#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list