WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #16484, comment 2


Ignore:
Timestamp:
02/08/2011 12:16:37 AM (7 years ago)
Author:
nacin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16484, comment 2

    initial v1  
    11empty('0') returns true, yes. But I don't think we overuse empty() as often you might think.
    22
    3 In this case, it's the deluge of empty() checks in wp_insert_user. Really, these should be !isset() || !strlen(). Clunky, but they'd handle this instance.
     3In this case, it's the deluge of empty() checks in wp_insert_user. Really, these should be `!isset() || !strlen()`. Clunky, but they'd handle this instance.