Skip to content

Commit

Permalink
QTS: removed redundant widget
Browse files Browse the repository at this point in the history
  • Loading branch information
spleen1981 committed Mar 5, 2022
1 parent 5e79edb commit 62c991f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 122 deletions.
94 changes: 0 additions & 94 deletions modules/slugs/includes/class-qtranslate-slug-widget.php

This file was deleted.

27 changes: 0 additions & 27 deletions modules/slugs/includes/class-qtranslate-slug.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ function init() {

add_filter( 'single_term_title', 'qtranxf_useTermLib', 805 );
add_filter( 'get_blogs_of_user', array( &$this, 'blog_names' ), 1 );
add_action( 'widgets_init', array( &$this, 'widget_init' ), 100 );
// Add specific CSS class to body class based on current lang
add_filter( 'body_class', array( $this, 'qts_body_class' ), 600, 1 );

Expand Down Expand Up @@ -1582,32 +1581,6 @@ public function blog_names( $blogs ) {
return $blogs;
}

/**
* Initialise the Language Widget selector.
*/
public function widget_init() {

if ( class_exists( 'qTranslateWidget' ) ) {
unregister_widget( 'qTranslateWidget' );
}
if ( class_exists( 'mqTranslateWidget' ) ) {
unregister_widget( 'mqTranslateWidget' );
}
if ( class_exists( 'ppqTranslateWidget' ) ) {
unregister_widget( 'ppqTranslateWidget' );
}
register_widget( 'QtranslateSlugWidget' );
}

/**
* Remove some default dashboard Widgets on Desktop.
* @deprecated
*/
function remove_dashboard_widgets() {
global $wp_meta_boxes;
unset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press'] );
}

/**
* Adds support for qtranslate nav menus.
*/
Expand Down
1 change: 0 additions & 1 deletion modules/slugs/slugs.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

include_once( dirname( __FILE__ ) . '/includes/class-qtranslate-slug-widget.php' );
include_once( dirname( __FILE__ ) . '/includes/class-qtranslate-slug.php' );

if ( ! defined( "QTS_PREFIX" ) ) {
Expand Down

0 comments on commit 62c991f

Please sign in to comment.