summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wp-includes/ms-settings.php2
-rw-r--r--src/wp-includes/script-loader.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/wp-includes/ms-settings.php b/src/wp-includes/ms-settings.php
index c665da17e3..e9d9f498e2 100644
--- a/src/wp-includes/ms-settings.php
+++ b/src/wp-includes/ms-settings.php
@@ -59,7 +59,7 @@ ms_subdomain_constants();
// have not been populated in the global scope through something like `sunrise.php`.
if ( ! isset( $current_site ) || ! isset( $current_blog ) ) {
- $domain = strtolower( stripslashes( $_SERVER['HTTP_HOST'] ) );
+ $domain = strtolower( stripslashes( $_SERVER['HTTP_HOST'] ?? '' ) );
if ( str_ends_with( $domain, ':80' ) ) {
$domain = substr( $domain, 0, -3 );
$_SERVER['HTTP_HOST'] = substr( $_SERVER['HTTP_HOST'], 0, -3 );
diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php
index 51efa328bf..fa4a038754 100644
--- a/src/wp-includes/script-loader.php
+++ b/src/wp-includes/script-loader.php
@@ -2900,7 +2900,7 @@ function wp_get_script_tag( $attributes ) {
/**
* Prints formatted `<script>` loader tag.
*
- * It is possible to inject attributes in the `<script>` tag via the {@see 'wp_script_attributes'} filter.
+ * It is possible to inject attributes in the `<script>` tag via the {@see 'wp_script_attributes'} filter.
* Automatically injects type attribute if needed.
*
* @since 5.7.0
@@ -2914,7 +2914,7 @@ function wp_print_script_tag( $attributes ) {
/**
* Constructs an inline script tag.
*
- * It is possible to inject attributes in the `<script>` tag via the {@see 'wp_script_attributes'} filter.
+ * It is possible to inject attributes in the `<script>` tag via the {@see 'wp_inline_script_attributes'} filter.
* Automatically injects type attribute if needed.
*
* @since 5.7.0
@@ -3003,7 +3003,7 @@ function wp_get_inline_script_tag( $data, $attributes = array() ) {
/**
* Prints an inline script tag.
*
- * It is possible to inject attributes in the `<script>` tag via the {@see 'wp_script_attributes'} filter.
+ * It is possible to inject attributes in the `<script>` tag via the {@see 'wp_inline_script_attributes'} filter.
* Automatically injects type attribute if needed.
*
* @since 5.7.0