Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

Classic Text Widget

Описание

Возвращает назад старый классический текстовый виджет без TinyMCE. Основан на коде из WordPress 4.7.5

Функциональность точно такая же как в текстовом виджете до WP 4.8. Дополнительно включает исполнение шорткодов и пользовательский фильтр классов.

Заметка: Виджет использует пространства имен PHP для избежания конфликтов с другими похожими виджетами. PHP пространства имен поддерживаются только начиная с PHP 5.3. Если у вас более старая версия PHP не устанавливайте этот виджет, сначала обновите PHP.

Скриншоты

  • 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.

Отзывы

12.09.2017
The default text widget broke my shortcodes. Thanks for providing an easily solution!
20.07.2017
I was about to make this exact plugin. Thank you for putting this together. Works perfectly!
15.07.2017
This bug in WP core and then this fix encompases all that is bad and all that is good about WP.
03.07.2017
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 отзывов

Участники и разработчики

«Classic Text Widget» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«Classic Text Widget» переведён на 3 языка. Благодарим переводчиков за их работу.

Перевести «Classic Text Widget» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.0.2

Bumped «Tested up to» tag

1.0.1

Добавлен фильтр, так что вы можете использовать собственный произвольный класс для виджета. Если вы не создалите собственый класс, по умолчанию будет использован -classic-textwidget.

Использование:

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.