Changeset 38519
- Timestamp:
- 09/04/2016 04:08:11 AM (8 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-scripts.php
r38345 r38519 253 253 * @param string $handle Name of the script. Should be unique. 254 254 * @param string $src Full URL of the script, or path of the script relative to the WordPress root directory. 255 * Default empty. 255 256 * @param array $deps Optional. An array of registered script handles this script depends on. Default empty array. 256 257 * @param string|bool|null $ver Optional. String specifying script version number, if it has one, which is added to the URL … … 261 262 * Default 'false'. 262 263 */ 263 function wp_enqueue_script( $handle, $src = false, $deps = array(), $ver = false, $in_footer = false ) {264 function wp_enqueue_script( $handle, $src = '', $deps = array(), $ver = false, $in_footer = false ) { 264 265 $wp_scripts = wp_scripts(); 265 266 -
trunk/src/wp-includes/functions.wp-styles.php
r37985 r38519 152 152 * @param string $handle Name of the stylesheet. Should be unique. 153 153 * @param string $src Full URL of the stylesheet, or path of the stylesheet relative to the WordPress root directory. 154 * Default empty. 154 155 * @param array $deps Optional. An array of registered stylesheet handles this stylesheet depends on. Default empty array. 155 156 * @param string|bool|null $ver Optional. String specifying stylesheet version number, if it has one, which is added to the URL … … 161 162 * '(orientation: portrait)' and '(max-width: 640px)'. 162 163 */ 163 function wp_enqueue_style( $handle, $src = false, $deps = array(), $ver = false, $media = 'all' ) {164 function wp_enqueue_style( $handle, $src = '', $deps = array(), $ver = false, $media = 'all' ) { 164 165 _wp_scripts_maybe_doing_it_wrong( __FUNCTION__ ); 165 166
Note: See TracChangeset
for help on using the changeset viewer.