Fix error on activation. Rename widgets to "(plugin)" instead to show difference to theme widgets

This commit is contained in:
Alexander Agnarson 2019-01-15 19:43:06 +01:00
parent d987b90799
commit 23d5b51bb7
3 changed files with 2 additions and 36 deletions

View file

@ -110,37 +110,3 @@ function alx_ext_register_custom_sidebars() {
add_action( 'widgets_init', 'alx_ext_register_custom_sidebars', 11 );
/* Custom widgets
/* ------------------------------------ */
/* backwards compatibility (stop 2 of same widgets from loading)*/
/* alx-posts */
function roundtype_register_widget_posts() { }
function agnar_register_widget_posts() { }
function writeup_register_widget_posts() { }
function split_register_widget_posts() { }
function enspire_register_widget_posts() { }
function typecore_register_widget_posts() { }
function kontrast_register_widget_posts() { }
function slanted_register_widget_posts() { }
function magaziner_register_widget_posts() { }
function blogside_register_widget_posts() { }
function blogrow_register_widget_posts() { }
function anew_register_widget_posts() { }
/* alx-tabs */
function roundtype_register_widget_tabs() { }
function agnar_register_widget_tabs() { }
function writeup_register_widget_tabs() { }
function split_register_widget_tabs() { }
function enspire_register_widget_tabs() { }
function typecore_register_widget_tabs() { }
function kontrast_register_widget_tabs() { }
function slanted_register_widget_tabs() { }
function magaziner_register_widget_tabs() { }
function blogside_register_widget_tabs() { }
function blogrow_register_widget_tabs() { }
function anew_register_widget_tabs() { }

View file

@ -16,7 +16,7 @@ class AlxPosts extends WP_Widget {
/* Constructor
/* ------------------------------------ */
function __construct() {
parent::__construct( false, esc_html__( 'Alx Posts', 'alx' ), array('description' => esc_html__( 'Display posts from a category', 'alx' ), 'classname' => 'widget_alx_posts', 'customize_selective_refresh' => true ) );
parent::__construct( false, esc_html__( 'Alx Posts (plugin)', 'alx' ), array('description' => esc_html__( 'Display posts from a category', 'alx' ), 'classname' => 'widget_alx_posts', 'customize_selective_refresh' => true ) );
}
public function alx_get_defaults() {

View file

@ -16,7 +16,7 @@ class AlxTabs extends WP_Widget {
/* Constructor
/* ------------------------------------ */
function __construct() {
parent::__construct( false, esc_html__( 'Alx Tabs', 'alx' ), array('description' => esc_html__('List posts, comments, and/or tags with or without tabs.', 'alx' ), 'classname' => 'widget_alx_tabs', 'customize_selective_refresh' => true ) );
parent::__construct( false, esc_html__( 'Alx Tabs (plugin)', 'alx' ), array('description' => esc_html__('List posts, comments, and/or tags with or without tabs.', 'alx' ), 'classname' => 'widget_alx_tabs', 'customize_selective_refresh' => true ) );
}
public function alx_get_defaults() {