Project

General

Profile

« Previous | Next » 

Revision 1333725e

Added by Reid Linnemann almost 3 years ago

Make *_get_path() return $default for empty values. Issue #13446.

When $default is non-null and the path resolves to an empty element, return
$default instead of the value. This allows callers to intentionally ignore empty
values by specifying $default and simplifies the expressions needed to determine
if a value in the configuration is non-existant or empty before falling back on
a default value, e.g. for keys that are set to empty values when a customization
is removed rather than the keys being deleted.

  • added
  • modified
  • copied
  • renamed
  • deleted