WordPress 4.8 introduced the visual editor to the Text Widget, but in doing so remove the checkbox to add paragraphs.
WordPress 4.8将视觉编辑器引入了“文本”小部件,但在此过程中,取消了复选框以添加段落。
Whilst this is backwardly compatible, as soon as you edit the text widget the paragraph tag is introduced.
尽管这是向后兼容的,但是一旦您编辑文本窗口小部件,便会引入段落标记。
This can have disastrous impact to your design and break
这可能会对您的设计造成灾难性的影响并破坏
scripts that have blank lines.
包含空白行的脚本。 p>
Also, the visual editor if used will remove code it thinks is invalid, including empty tags, which is also a bit problem.
此外,可视化编辑器(如果使用)将删除它认为无效的代码,包括空标签,这也是一个问题。
By default this plugin also turns off the visual editor.
默认情况下,此插件还会关闭可视化编辑器。 p>
There is a setting added to settings>general that allows you to turn on the visual editor.
有一个设置添加到settings> general中,可以打开可视化编辑器。
You can also turn it back on by adding define (‘VISUAL_TEXT_WIDGET’,true);
您还可以通过添加define('VISUAL_TEXT_WIDGET',true)重新打开它;
to your wp-config.php.
到您的wp-config.php。
Defining
定义
VISUAL_TEXT_WIDGET to true or false remove the setting option from settings>general so you can hide the option.
VISUAL_TEXT_WIDGET为true或false可以从settings> general中删除该设置选项,以便隐藏该选项。 p>
If installed pre 4.8 the plugin will do nothing, not even a warning, so you can install this before a 4.8 upgrade and things should be better.
如果在4.8之前安装,该插件将无所作为,甚至不会发出警告,因此您可以在4.8升级之前安装此插件,并且情况会更好。
Of course upgrading is your responsibility and always take a backup.
当然,升级是您的责任,并且始终要备份。 p>
Version: 1.6 only : WordPress 4.8.1 ( currently in beta ) has introduced a legacy mode that makes this plugin redundant, so if the WordPress version is greater than 4.8 the plugin does nothing and is silent.
版本:仅1.6:WordPress 4.8.1(当前处于beta版)引入了旧版模式,使该插件具有冗余性,因此,如果WordPress版本大于4.8,则该插件将不执行任何操作且保持沉默。
You may safely remove it if you are on 4.8.1 or above.
如果您使用的是4.8.1或更高版本,则可以安全地删除它。 p>
Thank the developer
感谢开发者 h3>
Did this plugin get you out of trouble?
此插件让您摆脱困境了吗?
Please consider making a small donation to thank the developer for
请考虑捐款少量,以感谢开发人员
the the time he has saved you.
他救了你的时间。 p>
Hall of fame
名人堂
* 28 June 2017 – STW – $25
* 2017年6月28日– STW – $ 25
* 4 July 2017 – AS – $1
* 2017年7月4日– AS – $ 1
* 17 July 2017 – M11 – $20
* 2017年7月17日– M11 – $ 20 p>
Total thanks to date $46
截止到目前,总计感谢$ 46 p>