--- a/wp/wp-includes/class-wp-dependency.php Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-includes/class-wp-dependency.php Fri Sep 05 18:40:08 2025 +0200
@@ -16,6 +16,7 @@
* @access private
* @since 2.6.0
*/
+#[AllowDynamicProperties]
class _WP_Dependency {
/**
* The handle name.
@@ -28,8 +29,10 @@
/**
* The handle source.
*
+ * If source is set to false, the item is an alias of other items it depends on.
+ *
* @since 2.6.0
- * @var string
+ * @var string|false
*/
public $src;
@@ -125,7 +128,7 @@
* @param string $path Optional. The full file path to the directory containing translation files.
* @return bool False if $domain is not a string, true otherwise.
*/
- public function set_translations( $domain, $path = null ) {
+ public function set_translations( $domain, $path = '' ) {
if ( ! is_string( $domain ) ) {
return false;
}