Skip to content

Commit 43bc3a5

Browse files
committed
Properly set empty option for defaults
1 parent 93b4257 commit 43bc3a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

carpenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* Plugin Name: Carpenter
5-
* Version: 1.2.5
5+
* Version: 1.2.6
66
* Author: Apsis Labs
77
* Author URI: www.apsis.io
88
*/

core/taxonomy.cls.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function __construct($name, $postType, $args = array()) {
1414
$this->slug = isset($slug) ? $slug : $name;
1515
$this->singular = isset($singular) ? $singular : $this->createLabel($name);
1616
$this->plural = isset($plural) ? $plural : $this->createLabel($name);
17-
$this->defaults = isset($defaults) ? $defaults : null;
17+
$this->defaults = isset($defaults) ? $defaults : array();
1818

1919
$options = ( isset($options) && is_array($options) ) ? $options : array();
2020

0 commit comments

Comments
 (0)