消息在wordpress加载时弹出

时间:2015-12-07 14:36:10

标签: php wordpress load message

我正在尝试隐藏在加载任何wordpress页面时继续显示的以下消息:

 Force Word Wrapping. For support / comments / whatever, visit the support forums. Version: 1.0.0 Author: Jim Wigginton Author URI: http://www.frostjedi.com/ */ function word_wrap_pass($message) { $wrapAt = 70; $tempText = ''; $finalText = ''; $curCount = $tempCount = 0; $longestAmp = 9; $inTag = false; $ampText = ''; $len = strlen($message); for ($num=0;$num<$len;$num++) { $curChar = $message{$num}; if ($curChar == '<') { for ($snum=0;$snum') { $tempText .= '>'; $inTag = false; } elseif ($inTag) { $tempText .= $curChar; } elseif ($curChar == '&') { for ($snum=0;$snum= $longestAmp || $curChar == ';') { for ($snum=0;$snum= $maxChars) { $finalText .= $tempText . ' '; $tempText = ''; $curCount = 1; } else { $tempText .= $curChar; $curCount++; } // the following code takes care of (unicode) characters prohibiting non-mandatory breaks directly before them. // $curChar isn't a " " or "\n" if ($tempText != '' && $curChar != '') { $tempCount++; } // $curChar is " " or "\n", but $nextChar prohibits wrapping. elseif ( ($curCount == 1 && strstr($wrapProhibitedChars,$curChar) !== false) || ($curCount == 0 && $nextChar != '' && $nextChar != ' ' && $nextChar != "\n" && strstr($wrapProhibitedChars,$nextChar) !== false)) { $tempCount++; } // $curChar and $nextChar aren't both either " " or "\n" elseif (!($curCount == 0 && ($nextChar == ' ' || $nextChar == "\n"))) { $tempCount = 0; } if ($tempCount >= $maxChars && $tempText == '') { $finalText .= ' '; $tempCount = 1; $curCount = 2; } if ($tempText == '' && $curCount > 0) { $finalText .= $curChar; } } add_filter('the_content', 'word_wrap_pass'); add_filter('comment_text', 'word_wrap_pass'); ?>

我尝试过很多不同的事情,包括How can I stop PHP notices from appearing in wordpress?中的内容。

任何帮助将不胜感激

1 个答案:

答案 0 :(得分:1)

很难说明您正在展示的代码......我们需要更多信息才能正确回答这个问题。但是,此消息似乎来自您的一个编码不正确的插件。我会禁用所有插件,然后一次启用一个插件,直到再次显示此消息。这将是你的错误插件。永久禁用/删除它......或者联系作者,要求他们在真正需要的时候修复它。

相关问题