From 188796450e4b5842c51f48f6a6cd47106920d9a4 Mon Sep 17 00:00:00 2001 From: Takayuki Miyoshi Date: Sun, 16 Jun 2024 14:33:29 +0900 Subject: [PATCH] Rename $args to $options #1369 --- admin/includes/editor.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/admin/includes/editor.php b/admin/includes/editor.php index a6338f50..2bdc3b42 100644 --- a/admin/includes/editor.php +++ b/admin/includes/editor.php @@ -91,17 +91,17 @@ function wpcf7_editor_panel_mail( $post ) { ) ); } -function wpcf7_editor_box_mail( $post, $args = '' ) { - $args = wp_parse_args( $args, array( +function wpcf7_editor_box_mail( $post, $options = '' ) { + $options = wp_parse_args( $options, array( 'id' => 'wpcf7-mail', 'name' => 'mail', 'title' => __( 'Mail', 'contact-form-7' ), 'use' => null, ) ); - $id = esc_attr( $args['id'] ); + $id = esc_attr( $options['id'] ); - $mail = wp_parse_args( $post->prop( $args['name'] ), array( + $mail = wp_parse_args( $post->prop( $options['name'] ), array( 'active' => false, 'recipient' => '', 'sender' => '', @@ -115,12 +115,12 @@ function wpcf7_editor_box_mail( $post, $args = '' ) { ?>
-

+

- +

'; - $post->suggest_mail_tags( $args['name'] ); + $post->suggest_mail_tags( $options['name'] ); ?> @@ -150,7 +150,7 @@ function wpcf7_editor_box_mail( $post, $args = '' ) { @@ -159,7 +159,7 @@ function wpcf7_editor_box_mail( $post, $args = '' ) { @@ -168,7 +168,7 @@ function wpcf7_editor_box_mail( $post, $args = '' ) { @@ -177,7 +177,7 @@ function wpcf7_editor_box_mail( $post, $args = '' ) { @@ -186,7 +186,7 @@ function wpcf7_editor_box_mail( $post, $args = '' ) {
- +
- +
- +
- +
- +

@@ -199,7 +199,7 @@ function wpcf7_editor_box_mail( $post, $args = '' ) {
- +