Skip to content

Commit 4ae0b5b

Browse files
authored
Merge pull request #93 from BeAPI/fix-plugin-deactivate
fix random plugin deactivate
2 parents 0b74f5c + 8bbcd4e commit 4ae0b5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/requirements.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Requirements {
1212
* @return bool
1313
*/
1414
public function check_requirements() {
15-
if ( ! function_exists( 'acf' ) || ! function_exists( 'pll_current_language' ) ) {
15+
if ( ! function_exists( 'acf' ) || ! defined( 'POLYLANG_VERSION' ) ) {
1616
$this->display_error( __( 'Advanced Custom Fields and Polylang are required plugins.', 'bea-acf-options-for-polylang' ) );
1717

1818
return false;

0 commit comments

Comments
 (0)