Skip to content

Commit

Permalink
Update descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
cbravobernal committed May 29, 2024
1 parent 64d0aea commit a9f15d8
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,7 @@ public function process_directives( string $html ): string {
* it returns null if the HTML contains unbalanced tags.
*
* @since 6.5.0
* @since 6.6.0 The function now adds a warning when the HTML contains unbalanced
* tags or SVG/Math with directives.
* @since 6.6.0 The function displays a warning message when the HTML contains unbalanced tags.
*
* @param string $html The HTML content to process.
* @param array $context_stack The reference to the array used to keep track of contexts during processing.
Expand Down Expand Up @@ -392,7 +391,7 @@ private function process_directives_args( string $html, array &$context_stack, a
*/
if ( $unbalanced || 0 < count( $tag_stack ) ) {
$tag_errored = 0 < count( $tag_stack ) ? end( $tag_stack )[0] : $tag_name;
/* translators: %s: Tag that caused the error, could by any HTML tag. */
/* translators: %s: The tag that caused the error; could be any HTML tag. */
$message = sprintf( __( 'Interactivity directives failed to process in "%1$s" due to a missing "%2$s" end tag.' ), end( $namespace_stack ), $tag_errored );
_doing_it_wrong( __METHOD__, $message, '6.6.0' );
return null;
Expand Down

0 comments on commit a9f15d8

Please sign in to comment.