Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #37836, comment 5


Ignore:
Timestamp:
10/11/2016 05:54:07 PM (8 years ago)
Author:
Mista-Flo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37836, comment 5

    initial v1  
    11Here's a second patch. Thanks to @fperdaan for the review.
    22
    3 Since the conditional test of $do_both is already made line 13 with the is_multisite, and user cap test, it does not necessary to test again with $both var, we only need to test if it's multisite.
     3Since the conditional test of $do_both is already made line 13 with the is_multisite, and user cap test, it's not necessary to test again with $both var, we only need to test if it's multisite.
    44
    55By the way the code of this file is really hard to read, a refactoring would be a nice thing to do to avoid DRY code.