diff --git a/inc/sns/widget-twitter.php b/inc/sns/widget-twitter.php index 2e31bcb7..aad947a2 100644 --- a/inc/sns/widget-twitter.php +++ b/inc/sns/widget-twitter.php @@ -5,16 +5,27 @@ class VK_Twitter_Widget extends WP_Widget { /** * ウィジェット名などを設定 */ - public function __construct() { - $widget_name = veu_get_prefix() . __( 'Twitter', 'vk-all-in-one-expansion-unit' ); + function __construct() { parent::__construct( 'vk_twitter_widget', // Base ID - $widget_name, // Name - array( 'description' => __( 'Display Twitter timeline.', 'vk-all-in-one-expansion-unit' ) ) // Args + self::widget_name(), // Name + array( 'description' => self::widget_description() ) // Args ); // widget actual processes } + public static function widget_name() { + $name = veu_get_prefix() . __( 'Twitter', 'vk-all-in-one-expansion-unit' ); + $name .= ' ( ' . __( 'Not recommended', 'vk-all-in-one-expansion-unit' ) . ' )'; + return $name; + } + + public static function widget_description() { + $description = __( 'Display Twitter timeline.', 'vk-all-in-one-expansion-unit' ); + $description .= __( 'Note: ', 'vk-all-in-one-expansion-unit' ) . __( 'Due to recent changes in X policies, embedded timelines may not display as expected.', 'vk-all-in-one-expansion-unit' ); + return wp_kses( $description, array( 'br' => array() ) ); + } + /** * ウィジェットの内容を出力 * diff --git a/readme.txt b/readme.txt index eea4945f..da55d70a 100644 --- a/readme.txt +++ b/readme.txt @@ -81,6 +81,7 @@ e.g. == Changelog == +[ Specification Change ][ Twitter widget ] Added "Not recommended" to the name and added a note to the description. [ Add setting ][ Category list ] Enable to specify ascending/descending order = 9.99.6 =