IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 213 | 213 | * @param array $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 | * @param array $extra |
| 216 | 217 | * @return bool True on success, false on failure. |
| 217 | 218 | */ |
| 218 | | public function add( $handle, $src, $deps = array(), $ver = false, $args = null ) { |
| | 219 | public function add( $handle, $src, $deps = array(), $ver = false, $args = null, $extra = array() ) { |
| 219 | 220 | if ( isset($this->registered[$handle]) ) |
| 220 | 221 | return false; |
| 221 | | $this->registered[$handle] = new _WP_Dependency( $handle, $src, $deps, $ver, $args ); |
| | 222 | $this->registered[$handle] = new _WP_Dependency( $handle, $src, $deps, $ver, $args, $extra ); |
| 222 | 223 | return true; |
| 223 | 224 | } |
| 224 | 225 | |
| … |
… |
|
| 484 | 485 | * @since 2.6.0 |
| 485 | 486 | */ |
| 486 | 487 | public function __construct() { |
| 487 | | @list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = func_get_args(); |
| | 488 | @list( $this->handle, $this->src, $this->deps, $this->ver, $this->args, $this->extra ) = func_get_args(); |
| 488 | 489 | if ( ! is_array($this->deps) ) |
| 489 | 490 | $this->deps = array(); |
| 490 | 491 | } |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 107 | 107 | * @param string $media Optional. The media for which this stylesheet has been defined. |
| 108 | 108 | * Default 'all'. Accepts 'all', 'aural', 'braille', 'handheld', 'projection', 'print', |
| 109 | 109 | * 'screen', 'tty', or 'tv'. |
| | 110 | * @param array $extra |
| 110 | 111 | */ |
| 111 | | function wp_register_style( $handle, $src, $deps = array(), $ver = false, $media = 'all' ) { |
| | 112 | function wp_register_style( $handle, $src, $deps = array(), $ver = false, $media = 'all', $extra = array() ) { |
| 112 | 113 | _wp_scripts_maybe_doing_it_wrong( __FUNCTION__ ); |
| 113 | 114 | |
| 114 | | wp_styles()->add( $handle, $src, $deps, $ver, $media ); |
| | 115 | wp_styles()->add( $handle, $src, $deps, $ver, $media, $extra ); |
| 115 | 116 | } |
| 116 | 117 | |
| 117 | 118 | /** |
| … |
… |
|
| 148 | 149 | * @param string $media Optional. The media for which this stylesheet has been defined. |
| 149 | 150 | * Default 'all'. Accepts 'all', 'aural', 'braille', 'handheld', 'projection', 'print', |
| 150 | 151 | * 'screen', 'tty', or 'tv'. |
| | 152 | * @param array $extra |
| 151 | 153 | */ |
| 152 | | function wp_enqueue_style( $handle, $src = false, $deps = array(), $ver = false, $media = 'all' ) { |
| | 154 | function wp_enqueue_style( $handle, $src = false, $deps = array(), $ver = false, $media = 'all', $extra = array() ) { |
| 153 | 155 | global $wp_styles; |
| 154 | 156 | _wp_scripts_maybe_doing_it_wrong( __FUNCTION__ ); |
| 155 | 157 | |
| … |
… |
|
| 157 | 159 | |
| 158 | 160 | if ( $src ) { |
| 159 | 161 | $_handle = explode('?', $handle); |
| 160 | | $wp_styles->add( $_handle[0], $src, $deps, $ver, $media ); |
| | 162 | $wp_styles->add( $_handle[0], $src, $deps, $ver, $media, $extra ); |
| 161 | 163 | } |
| 162 | 164 | $wp_styles->enqueue( $handle ); |
| 163 | 165 | } |