Title: Classic Text Widget
Author: Victor Font
Published: <strong>2017 年 6 月 11 日</strong>
Last modified: 2019 年 4 月 29 日

---

搜索插件

![](https://ps.w.org/classic-text-widget/assets/banner-772x250.png?rev=1676091)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/classic-text-widget/assets/icon-256x256.png?rev=1676091)

# Classic Text Widget

 作者：[Victor Font](https://profiles.wordpress.org/vfontj/)

[下载](https://downloads.wordpress.org/plugin/classic-text-widget.1.0.2.zip)

 * [详情](https://cn.wordpress.org/plugins/classic-text-widget/#description)
 * [评价](https://cn.wordpress.org/plugins/classic-text-widget/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/classic-text-widget/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/classic-text-widget/#developers)

 [支持](https://wordpress.org/support/plugin/classic-text-widget/)

## 描述

Brings back the classic WordPress text widget without TinyMCE. This is based on 
the code from WordPress Ver. 4.7.5

Functionality is exactly the same as the pre-version 4.8 text widget. Additional
default functionality includes shortcode execution and custom class filter.

Note: This widget uses PHP namespaces to prevent conflicts with other widgets of
a similar nature. PHP namespaces are only supported in PHP Version 5.3.0 and higher.
If your site uses a PHP version earlier than 5.3.0, do not install this widget unless
your PHP version is upgraded first.

## 屏幕截图

 * [[
 * Classic Text Widget on WordPress Admin Appearance/Widgets menu
 * [[
 * Classic Text Widget added to Primary Sidebar

## 安装

 1. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

  Do the original text widget filters work with the Classic Text Widget?

Yes and no. Filters that apply to the widget title remain the same to maintain compatibility
across WordPress. Filters that apply to to the widget’s content now use add_filter(‘
classic_widget_text’, ‘my_function’)

  Does the plugin support shortcodes?

Yes, out of the box. To disable shortcode support, add remove_filter( ‘classic_widget_text’,‘
do_shortcode’ ) to your theme’s function file.

  Does the plugin directly execute PHP?

No, it does not directly support executing PHP. The widget does support shortcodes
however. If you want to execute PHP in this widget, write your code as a shortcode
and it will run.

  I have a lot of text widgets on my site, is there a way to bulk transfer the content
from the new WordPress text widget and place it into the Classic Text Widget?

Yes, but you have to be very careful and do it with SQL. See this post for details
about how to [bulk replace](https://christinacreativedesign.com/how-to-bulk-replace-the-4-8-wordpress-text-widget-with-the-classic-text-widget/).

## 评价

![](https://secure.gravatar.com/avatar/8cfa18ddcc8ff9fc745477d2185e00c306d820eca5ef0392a60f11e3981aabc1?
s=60&d=retro&r=g)

### 󠀁[Lifesaver](https://wordpress.org/support/topic/lifesaver-100/)󠁿

 [Christoph](https://profiles.wordpress.org/camthor/) 2017 年 9 月 12 日

The default text widget broke my shortcodes. Thanks for providing an easily solution!

![](https://secure.gravatar.com/avatar/be213f96a85c4420b5799069aae1d4b61fbd7595b1085ef1c86eb99c5468694c?
s=60&d=retro&r=g)

### 󠀁[Great For HTML](https://wordpress.org/support/topic/great-for-html/)󠁿

 [Lee Blue](https://profiles.wordpress.org/reality66/) 2017 年 7 月 20 日

I was about to make this exact plugin. Thank you for putting this together. Works
perfectly!

![](https://secure.gravatar.com/avatar/e8effae3feedf008968ef6066854bfa861b369dba1a87ae3dc6c3729037b6676?
s=60&d=retro&r=g)

### 󠀁[Wish I Found This Sooner](https://wordpress.org/support/topic/wish-i-found-this-sooner-2/)󠁿

 [editork](https://profiles.wordpress.org/editork/) 2017 年 7 月 18 日

A week shot, but at least we’re back to pre-update functionality. Thanks a M I L
L I O N !!!

![](https://secure.gravatar.com/avatar/faab07d7f8b3d922799b493a8f0d1351c558fb06ce6e3d8a55afafb5133365d1?
s=60&d=retro&r=g)

### 󠀁[hallelujah!](https://wordpress.org/support/topic/hallelujah-3/)󠁿

 [BitEdge](https://profiles.wordpress.org/whatwhatwhatwhat/) 2017 年 7 月 15 日

This bug in WP core and then this fix encompases all that is bad and all that is
good about WP.

![](https://secure.gravatar.com/avatar/8154b27e7a6beef83338ffc14c2934f849ec793a6f362ebebfa4d7749d0fa11d?
s=60&d=retro&r=g)

### 󠀁[Saved by the bell … Awesome!](https://wordpress.org/support/topic/saved-by-the-bell-awesome/)󠁿

 [ahmedmusawir](https://profiles.wordpress.org/ahmedmusawir/) 2017 年 7 月 4 日

Thank you for rescuing us from the latest WP 4.8 text widget disaster … keep us 
the awesome work. Thanx again…

![](https://secure.gravatar.com/avatar/b5794f057d82bae573c97d6b718b4a0a11015550ab4e8468e9885531ba2b1536?
s=60&d=retro&r=g)

### 󠀁[Cheers.](https://wordpress.org/support/topic/cheers-9/)󠁿

 [Kramarz](https://profiles.wordpress.org/kramarz/) 2017 年 7 月 3 日

Cheers for the plugin. As much as I like visual editor functionality brought to 
widgets in WP 4.8, we DO need that classic functionality as well! Hope they will
fix it one way or another in some WP 4.8.1 or something… So again, big thanks for
the plugin!

 [ 阅读所有15条评价 ](https://wordpress.org/support/plugin/classic-text-widget/reviews/)

## 贡献者及开发者

「Classic Text Widget」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Victor Font ](https://profiles.wordpress.org/vfontj/)
 *   [ Christina ](https://profiles.wordpress.org/carasmo/)

「Classic Text Widget」插件已被翻译至 3 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/classic-text-widget/contributors)
为本插件所做的贡献。

[帮助将「Classic Text Widget」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/classic-text-widget)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/classic-text-widget/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/classic-text-widget/)，或通过[RSS](https://plugins.trac.wordpress.org/log/classic-text-widget/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/classic-text-widget/)。

## 更新日志

#### 1.0.2

Bumped “Tested up to” tag

#### 1.0.1

Added filter so you can provide your own custom class for the widget. If you choose
not to create your own class, the default secondary class is custom-classic-textwidget.

Usage:

add_filter( ‘classic_text_widget_class’, ‘my_classic_text_widget_class’ );
 function
my_classic_text_widget_class( $class ) { return ‘my_classic_text_widget_class’; }

#### 1.0.0

 * Initial commit based on WordPress 4.7.5 Text Widget and plugin conversion by 
   carasmo
 * Restores the pre 4.8 Classic WordPress text widget just like the good old days.

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**7 年前**
 *  活跃安装数量 **2,000+**
 *  WordPress 版本 ** 4.8 或更高版本 **
 *  已测试的最高版本为 **5.2.24**
 *  语言
 * [Czech](https://cs.wordpress.org/plugins/classic-text-widget/) 、 [English (US)](https://wordpress.org/plugins/classic-text-widget/)、
   [German](https://de.wordpress.org/plugins/classic-text-widget/) 和 [Russian](https://ru.wordpress.org/plugins/classic-text-widget/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/classic-text-widget)
 * 标签
 * [text](https://cn.wordpress.org/plugins/tags/text/)[text widget](https://cn.wordpress.org/plugins/tags/text-widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/classic-text-widget/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  15 条 5 星评价     ](https://wordpress.org/support/plugin/classic-text-widget/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/classic-text-widget/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/classic-text-widget/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/classic-text-widget/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/classic-text-widget/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/classic-text-widget/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/classic-text-widget/reviews/)

## 贡献者

 *   [ Victor Font ](https://profiles.wordpress.org/vfontj/)
 *   [ Christina ](https://profiles.wordpress.org/carasmo/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/classic-text-widget/)