IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
214 | 214 | * |
215 | 215 | * @param string $handle Name of the script. |
216 | 216 | * @param string|bool $src Path to the script from the root directory of WordPress. Example: '/js/myscript.js'. |
217 | | * @param array $deps An array of registered handles this script depends on. Default empty array. |
| 217 | * @param array|string $deps An array of registered handles this script depends on. Default empty array. |
218 | 218 | * @param string|bool $ver Optional. String specifying the script version number, if it has one. This parameter |
219 | 219 | * is used to ensure that the correct version is sent to the client regardless of caching, |
220 | 220 | * and so should be included if a version number is available and makes sense for the script. |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
144 | 144 | * |
145 | 145 | * @param string $handle Name of the stylesheet. |
146 | 146 | * @param string|bool $src Path to the stylesheet from the root directory of WordPress. Example: '/css/mystyle.css'. |
147 | | * @param array $deps An array of registered style handles this stylesheet depends on. Default empty array. |
| 147 | * @param array|string $deps An array of registered style handles this stylesheet depends on. Default empty array. |
148 | 148 | * @param string|bool $ver String specifying the stylesheet version number, if it has one. This parameter is used |
149 | 149 | * to ensure that the correct version is sent to the client regardless of caching, and so |
150 | 150 | * should be included if a version number is available and makes sense for the stylesheet. |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
210 | 210 | * |
211 | 211 | * @param string $handle Unique item name. |
212 | 212 | * @param string $src The item url. |
213 | | * @param array $deps Optional. An array of item handle strings on which this item depends. |
| 213 | * @param array|string $deps Optional. An array of item handle strings on which this item depends. |
214 | 214 | * @param string $ver Optional. Version (used for cache busting). |
215 | 215 | * @param mixed $args Optional. Custom property of the item. NOT the class property $args. Examples: $media, $in_footer. |
216 | 216 | * @return bool Whether the item has been registered. True on success, false on failure. |
… |
… |
|
485 | 485 | */ |
486 | 486 | public function __construct() { |
487 | 487 | @list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = func_get_args(); |
488 | | if ( ! is_array($this->deps) ) |
489 | | $this->deps = array(); |
| 488 | if ( ! is_array( $this->deps ) ) { |
| 489 | $this->deps = is_string( $this->deps ) ? array( $this->deps ) : array(); |
| 490 | } |
490 | 491 | } |
491 | 492 | |
492 | 493 | /** |