[wp-trac] [WordPress Trac] #56982: Empty ELSE statement in dbDelta() (was: Empty ELSE statement)
WordPress Trac
noreply at wordpress.org
Wed Apr 26 15:07:38 UTC 2023
#56982: Empty ELSE statement in dbDelta()
-----------------------------+-------------------------------
Reporter: krunal265 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.3
Component: Upgrade/Install | Version: 1.5
Severity: trivial | Resolution:
Keywords: dev-feedback | Focuses: coding-standards
-----------------------------+-------------------------------
Changes (by SergeyBiryukov):
* milestone: Awaiting Review => 6.3
Comment:
Replying to [comment:4 costdev]:
> In addition, if we're going to remove the comment and `else`, we could
also use `continue` to help separate each case and help a little with
readability by not having a wall of `if`/`elseif`.
Yeah, I agree that looks better. Thanks!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56982#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list