--- a/wp/wp-includes/class-wp-comment.php Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-includes/class-wp-comment.php Fri Sep 05 18:40:08 2025 +0200
@@ -12,6 +12,7 @@
*
* @since 4.4.0
*/
+#[AllowDynamicProperties]
final class WP_Comment {
/**
@@ -218,7 +219,7 @@
}
/**
- * Convert object to array.
+ * Converts object to array.
*
* @since 4.4.0
*
@@ -229,7 +230,7 @@
}
/**
- * Get the children of a comment.
+ * Gets the children of a comment.
*
* @since 4.4.0
*
@@ -301,7 +302,7 @@
}
/**
- * Add a child to the comment.
+ * Adds a child to the comment.
*
* Used by `WP_Comment_Query` when bulk-filling descendants.
*
@@ -314,7 +315,7 @@
}
/**
- * Get a child comment by ID.
+ * Gets a child comment by ID.
*
* @since 4.4.0
*
@@ -330,7 +331,7 @@
}
/**
- * Set the 'populated_children' flag.
+ * Sets the 'populated_children' flag.
*
* This flag is important for ensuring that calling `get_children()` on a childless comment will not trigger
* unneeded database queries.
@@ -344,7 +345,7 @@
}
/**
- * Check whether a non-public property is set.
+ * Determines whether a non-public property is set.
*
* If `$name` matches a post field, the comment post will be loaded and the post's value checked.
*
@@ -367,7 +368,7 @@
*
* @since 4.4.0
*
- * @param string $name
+ * @param string $name Property name.
* @return mixed
*/
public function __get( $name ) {