@@ -49,8 +49,9 @@ |
||
49 | 49 | if( !in_array($id, $this->metaboxes) ) |
50 | 50 | { |
51 | 51 | $this->metaboxes[$id] = array_merge($this->default_args(), $args); |
52 | + } else { |
|
53 | + throw new \RuntimeException("A metabox with id '$id' has already been registered."); |
|
52 | 54 | } |
53 | - else throw new \RuntimeException("A metabox with id '$id' has already been registered."); |
|
54 | 55 | } |
55 | 56 | |
56 | 57 | /** |