You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Request.php
+70-34
Original file line number
Diff line number
Diff line change
@@ -28,17 +28,17 @@ public static function should_load_rest_ns( string $space, ?string $route = null
28
28
$space = \trailingslashit( $space );
29
29
$known = \array_map( 'trailingslashit', $known );
30
30
31
-
/**
32
-
* Known namespaces that we know are safe to not load if the request is not for them.
33
-
* Namespaces not in this namespace should always be loaded, because we don't know if they won't be making another internal REST request to an unloaded namespace.
34
-
*
35
-
* @param array<string> $known_ns Known namespaces that we know are safe to not load if the request is not for them.
36
-
* @param string $space The namespace to check.
37
-
* @param string $route The REST route being checked.
38
-
* @return array<string>
39
-
*
40
-
* @since 1.16.0
41
-
*/
31
+
/**
32
+
* Known namespaces that we know are safe to not load if the request is not for them.
33
+
* Namespaces not in this namespace should always be loaded, because we don't know if they won't be making another internal REST request to an unloaded namespace.
34
+
*
35
+
* @param array<string> $known_ns Known namespaces that we know are safe to not load if the request is not for them.
36
+
* @param string $space The namespace to check.
37
+
* @param string $route The REST route being checked.
0 commit comments