summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/widgets.php')
-rw-r--r--plugins/jetpack/modules/widgets.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/plugins/jetpack/modules/widgets.php b/plugins/jetpack/modules/widgets.php
index 257ff5b9..8aa4db86 100644
--- a/plugins/jetpack/modules/widgets.php
+++ b/plugins/jetpack/modules/widgets.php
@@ -29,7 +29,7 @@ function jetpack_load_widgets() {
$widgets_include = apply_filters( 'jetpack_widgets_to_include', $widgets_include );
foreach( $widgets_include as $include ) {
- include $include;
+ include_once $include;
}
include_once dirname( __FILE__ ) . '/widgets/migrate-to-core/image-widget.php';
@@ -48,14 +48,6 @@ function jetpack_widgets_configuration_load() {
exit;
}
-/**
- * Add the "(Jetpack)" suffix to the widget names
- */
-function jetpack_widgets_add_suffix( $widget_name ) {
- return sprintf( __( '%s (Jetpack)', 'jetpack' ), $widget_name );
-}
-add_filter( 'jetpack_widget_name', 'jetpack_widgets_add_suffix' );
-
jetpack_load_widgets();