| 1 | Index: class.wp-dependencies.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- class.wp-dependencies.php (revision 20792) |
|---|
| 4 | +++ class.wp-dependencies.php (working copy) |
|---|
| 5 | @@ -245,7 +245,9 @@ |
|---|
| 6 | |
|---|
| 7 | function __construct() { |
|---|
| 8 | @list($this->handle, $this->src, $this->deps, $this->ver, $this->args) = func_get_args(); |
|---|
| 9 | - if ( !is_array($this->deps) ) |
|---|
| 10 | + if ( is_string( $this->deps ) ) |
|---|
| 11 | + $this->deps = array( $this->deps ); |
|---|
| 12 | + elseif ( !is_array( $this->deps ) ) |
|---|
| 13 | $this->deps = array(); |
|---|
| 14 | } |
|---|
| 15 | |
|---|