Plugin Updates
This commit is contained in:
@@ -13,8 +13,9 @@ function wpcf7_listo( $data, $options, $args ) {
|
||||
|
||||
$args = wp_parse_args( $args, array() );
|
||||
|
||||
$contact_form = wpcf7_get_current_contact_form();
|
||||
$args['locale'] = $contact_form->locale();
|
||||
if ( $contact_form = wpcf7_get_current_contact_form() ) {
|
||||
$args['locale'] = $contact_form->locale();
|
||||
}
|
||||
|
||||
foreach ( (array) $options as $option ) {
|
||||
$option = explode( '.', $option );
|
||||
|
||||
Reference in New Issue
Block a user