Changeset 43583
- Timestamp:
- 08/27/2018 02:33:35 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class.wp-scripts.php
r43565 r43583 205 205 } 206 206 207 echo "<script type='text/javascript'>\n"; // CDATA and type='text/javascript' is not needed for HTML 5 207 echo "<script type='text/javascript'>\n"; // CDATA and type='text/javascript' is not needed for HTML 5. 208 208 echo "/* <![CDATA[ */\n"; 209 209 echo "$output\n"; … … 222 222 * @see WP_Dependencies::do_item() 223 223 * 224 * @param string $handleThe script's registered handle.224 * @param string $handle The script's registered handle. 225 225 * @param int|false $group Optional. Group level: (int) level, (false) no groups. Default false. 226 226 * @return bool True on success, false on failure. … … 402 402 * @param string $position Optional. Whether to add the inline script before the handle 403 403 * or after. Default 'after'. 404 * @param bool $echoOptional. Whether to echo the script instead of just returning it.404 * @param bool $echo Optional. Whether to echo the script instead of just returning it. 405 405 * Default true. 406 406 * @return string|false Script on success, false otherwise. … … 427 427 * @since 2.1.0 428 428 * 429 * @param string $handle 430 * @param string $object_name 431 * @param array $l10n432 * @return bool 429 * @param string $handle Name of the script to attach data to. 430 * @param string $object_name Name of the variable that will contain the data. 431 * @param array $l10n Array of data to localize. 432 * @return bool True on success, false on failure. 433 433 */ 434 434 public function localize( $handle, $object_name, $l10n ) { … … 437 437 } 438 438 439 if ( is_array( $l10n ) && isset( $l10n['l10n_print_after'] ) ) { // back compat, preserve the code in 'l10n_print_after' if present 439 if ( is_array( $l10n ) && isset( $l10n['l10n_print_after'] ) ) { // back compat, preserve the code in 'l10n_print_after' if present. 440 440 $after = $l10n['l10n_print_after']; 441 441 unset( $l10n['l10n_print_after'] );
Note: See TracChangeset
for help on using the changeset viewer.