Skip to content

Commit 058d473

Browse files
committed
Documentation
1 parent c49dc0b commit 058d473

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/wp-includes/class-wp-block.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,13 @@ public function render( $options = array() ) {
583583
class PrivateProcessor extends WP_HTML_Processor {
584584

585585
/**
586-
* @param string $html
586+
* Set the inner HTML of the currrent node.
587587
*
588-
* @return bool
588+
* @todo This method needs to check if the inner HTML can leak out of the current node.
589+
*
590+
* @param string $html The inner HTML to set.
591+
*
592+
* @return bool True if the inner HTML was set, false otherwise.
589593
*/
590594
public function set_inner_html( string $html ): bool {
591595
if ( $this->is_virtual() ) {
@@ -659,6 +663,7 @@ public function set_inner_html( string $html ): bool {
659663

660664
/**
661665
* @todo check for self-closing foreign content tags
666+
* @todo document
662667
*/
663668
public function proceed_to_matching_closer(): bool {
664669
$tag_name = $this->get_tag();

0 commit comments

Comments
 (0)