Skip to content

Commit e5b6e12

Browse files
committed
Add docblock
1 parent 1f16c56 commit e5b6e12

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/wp-includes/script-loader.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3434,7 +3434,13 @@ function wp_enqueue_command_palette_assets() {
34343434
'is_network_admin' => is_network_admin(),
34353435
);
34363436

3437-
// Only collect text nodes at root level (not wrapped in any HTML tags).
3437+
/**
3438+
* Extracts root-level text nodes from HTML string.
3439+
*
3440+
* @ignore
3441+
* @param string $label HTML string to extract text from.
3442+
* @return string Extracted text content, trimmed.
3443+
*/
34383444
$extract_root_text = static function ( $label ) {
34393445
if ( '' === $label ) {
34403446
return '';

0 commit comments

Comments
 (0)