Skip to content

Commit a64ed8e

Browse files
authored
Workflows
1 parent e8197ec commit a64ed8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

simple-wp-optimizer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,10 +465,10 @@ function es_optimizer_add_settings_link($links) {
465465
* @return array Difference betwen the two arrays
466466
*/
467467
function disable_emojis_tinymce($plugins) {
468-
if (is_array($plugins)) {
469-
return array_diff($plugins, array('wpemoji'));
468+
if (!is_array($plugins)) {
469+
$plugins = array();
470470
}
471-
return array();
471+
return array_diff($plugins, array('wpemoji'));
472472
}
473473

474474
/**

0 commit comments

Comments
 (0)