Changeset 19573 for trunk/wp-includes/class.wp-scripts.php
- Timestamp:
- 12/08/2011 08:46:58 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/class.wp-scripts.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class.wp-scripts.php
r19217 r19573 146 146 $script .= "\n$after"; 147 147 148 return $this->add_script_data( $handle, $script );149 }150 151 /**152 * Add extra Javascript153 *154 * Only if script has already been added.155 *156 * @param string $handle Script name157 * @param string $script Extra JS to add before the script158 * @return bool Successful or not159 */160 function add_script_data( $handle, $script ) {161 if ( !is_string( $script ) )162 return false;163 164 148 $data = $this->get_data( $handle, 'data' ); 165 149
Note: See TracChangeset
for help on using the changeset viewer.