Skip to content

Commit

Permalink
Rename $args to $options
Browse files Browse the repository at this point in the history
  • Loading branch information
takayukister committed Jun 16, 2024
1 parent 0424a6e commit 66d0d42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/config-validator/mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ trait WPCF7_ConfigValidator_Mail {
/**
* Replaces all mail-tags in the given content.
*/
public function replace_mail_tags( $content, $args = '' ) {
$args = wp_parse_args( $args, array(
public function replace_mail_tags( $content, $options = '' ) {
$options = wp_parse_args( $options, array(
'html' => false,
'callback' =>
array( $this, 'replace_mail_tags_with_minimum_input_callback' ),
) );

$content = new WPCF7_MailTaggedText( $content, $args );
$content = new WPCF7_MailTaggedText( $content, $options );

return $content->replace_tags();
}
Expand Down

0 comments on commit 66d0d42

Please sign in to comment.