More yoda conditions
This commit is contained in:
1 parent
d9122a410d
commit
0a4c81c105
97 files changed
+323
-289
No files matched your search
@@ -257,7 +257,7 @@ class Field_Templates_Manager extends Base_Manager {
|
||||
|
||||
$holder_name = "instantiated_{$field_type}_templates";
|
||||
|
||||
if ( ! isset($this->holders[ $holder_name ]) || $this->holders[ $holder_name ] === null) {
|
||||
if ( ! isset($this->holders[ $holder_name ]) || null === $this->holders[ $holder_name ]) {
|
||||
$this->holders[ $holder_name ] = array_map([$this, 'instantiate_field_template'], $this->get_templates($field_type));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user