Core Function
View Source on Trac ↗ wp_remove_surrounding_empty_script_tags()
wp_remove_surrounding_empty_script_tags( mixed $contents ) Removes leading and trailing _empty_ script tags.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $contents string | Script body with manually created SCRIPT tag literals. Required |
Return Value
(string)
string Script body without surrounding script tag literals, or
original contents if both exact literals aren't present.
Function Information
Since Version
6.4.0
Source File
wp-includes/script-loader.php
Advertisement