Changeset 32483 for trunk/src/wp-includes/functions.wp-scripts.php
- Timestamp:
- 05/10/2015 07:56:15 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-scripts.php
r32124 r32483 95 95 * 96 96 * @since 2.6.0 97 * @since 4.3.0 A return value was added. 97 98 * 98 99 * @param string $handle Name of the script. Should be unique. … … 106 107 * @param bool $in_footer Optional. Whether to enqueue the script before </head> or before </body>. 107 108 * Default 'false'. Accepts 'false' or 'true'. 109 * @return bool Whether the script has been registered. True on success, false on failure. 108 110 */ 109 111 function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_footer = false ) { … … 111 113 _wp_scripts_maybe_doing_it_wrong( __FUNCTION__ ); 112 114 113 $ wp_scripts->add( $handle, $src, $deps, $ver );115 $registered = $wp_scripts->add( $handle, $src, $deps, $ver ); 114 116 if ( $in_footer ) { 115 117 $wp_scripts->add_data( $handle, 'group', 1 ); 116 118 } 119 120 return $registered; 117 121 } 118 122
Note: See TracChangeset
for help on using the changeset viewer.