Skip to content

Commit 86e3330

Browse files
committed
All: remove check of possibly undefined global variable
- this throws an error whenever WPLANG is not defined globally. I don't think it's needed because it already has a sensible fallback and we can set it in options tables if necessary
1 parent 2afdc68 commit 86e3330

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

mu-plugins/relevanssi/lib/stopwords.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ function relevanssi_populate_stopwords() {
55
global $wpdb, $relevanssi_variables;
66

77
$lang = get_option('WPLANG');
8-
if (empty($lang) && WPLANG != '') {
9-
$lang = WPLANG;
10-
}
118
if (empty($lang)) $lang = "en_GB";
129

1310
if (file_exists($relevanssi_variables['plugin_dir'] . 'stopwords/stopwords.' . $lang)) {

0 commit comments

Comments
 (0)