Skip to content

Commit

Permalink
Properly set empty option for defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
wkirby committed Feb 11, 2016
1 parent 93b4257 commit 43bc3a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion carpenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Plugin Name: Carpenter
* Version: 1.2.5
* Version: 1.2.6
* Author: Apsis Labs
* Author URI: www.apsis.io
*/
Expand Down
2 changes: 1 addition & 1 deletion core/taxonomy.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function __construct($name, $postType, $args = array()) {
$this->slug = isset($slug) ? $slug : $name;
$this->singular = isset($singular) ? $singular : $this->createLabel($name);
$this->plural = isset($plural) ? $plural : $this->createLabel($name);
$this->defaults = isset($defaults) ? $defaults : null;
$this->defaults = isset($defaults) ? $defaults : array();

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

Expand Down

0 comments on commit 43bc3a5

Please sign in to comment.