We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8197ec commit a64ed8eCopy full SHA for a64ed8e
1 file changed
simple-wp-optimizer.php
@@ -465,10 +465,10 @@ function es_optimizer_add_settings_link($links) {
465
* @return array Difference betwen the two arrays
466
*/
467
function disable_emojis_tinymce($plugins) {
468
- if (is_array($plugins)) {
469
- return array_diff($plugins, array('wpemoji'));
+ if (!is_array($plugins)) {
+ $plugins = array();
470
}
471
- return array();
+ return array_diff($plugins, array('wpemoji'));
472
473
474
/**
0 commit comments