Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/public_html/wp-content/plugins/complianz-terms-conditions/config/class-config.php #57

Open
WganMe opened this issue Mar 25, 2024 · 3 comments

Comments

@WganMe
Copy link

WganMe commented Mar 25, 2024

		if ( function_exists( 'icl_register_string' ) ) {
			$wpml = apply_filters( 'wpml_active_languages', null, array( 'skip_missing' => 0 ) );
			/**
			 * WPML has changed the index from 'language_code' to 'code' so
			 * we check for both.
			 */
			$wpml_test_index = reset( $wpml );
			if ( isset( $wpml_test_index['language_code'] ) ) {
				$wpml = wp_list_pluck( $wpml, 'language_code' );
			} elseif ( isset( $wpml_test_index['code'] ) ) {
				$wpml = wp_list_pluck( $wpml, 'code' );
			} else {
				$wpml = array();
			}
			$languages = array_merge( $wpml, $languages );
		}
@WganMe
Copy link
Author

WganMe commented Mar 25, 2024

I removed this broken my website with WPML

@WganMe
Copy link
Author

WganMe commented Mar 25, 2024

Please solve the issue

@rlankhorst
Copy link
Contributor

rlankhorst commented Mar 25, 2024

Can you provide us with the php error, because this works fine with wpml. Perhaps there is an issue in the translation strings.

Or is this since the latest wpml update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants