Skip to content

Commit

Permalink
Add translators comment
Browse files Browse the repository at this point in the history
See #23
  • Loading branch information
takayukister committed Jun 29, 2020
1 parent 7ace4ce commit ccc465f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,20 @@ function wpcf7_deprecated_function( $function, $version, $replacement ) {

if ( WP_DEBUG and $trigger_error ) {
if ( function_exists( '__' ) ) {
trigger_error( sprintf( __( '%1$s is <strong>deprecated</strong> since Contact Form 7 version %2$s! Use %3$s instead.', 'contact-form-7' ), $function, $version, $replacement ) );
trigger_error(
sprintf(
/* translators: 1: PHP function name, 2: version number, 3: alternative function name */
__( '%1$s is <strong>deprecated</strong> since Contact Form 7 version %2$s! Use %3$s instead.', 'contact-form-7' ),
$function, $version, $replacement
)
);
} else {
trigger_error( sprintf( '%1$s is <strong>deprecated</strong> since Contact Form 7 version %2$s! Use %3$s instead.', $function, $version, $replacement ) );
trigger_error(
sprintf(
'%1$s is <strong>deprecated</strong> since Contact Form 7 version %2$s! Use %3$s instead.',
$function, $version, $replacement
)
);
}
}
}
Expand Down

0 comments on commit ccc465f

Please sign in to comment.