From 6ee75ee89c9a7d043709bb3b16373da37662e788 Mon Sep 17 00:00:00 2001 From: Ryan Kienstra Date: Fri, 19 Jan 2018 21:27:52 -0600 Subject: [PATCH] Issue #864: Address failed Travis build by adding 'default' to textdomains. In phpcs.xml, add 'default' And remove the @codingStandardsIgnoreLine tags. --- includes/widgets/class-amp-widget-categories.php | 6 ++---- phpcs.xml | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/includes/widgets/class-amp-widget-categories.php b/includes/widgets/class-amp-widget-categories.php index b5c0442f6e8..f1e6c91380d 100644 --- a/includes/widgets/class-amp-widget-categories.php +++ b/includes/widgets/class-amp-widget-categories.php @@ -38,8 +38,7 @@ public function modify_select( $dropdown ) { */ public function widget( $args, $instance ) { static $first_dropdown = true; - // @codingStandardsIgnoreLine - $title = ! empty( $instance['title'] ) ? $instance['title'] : __( 'Categories' ); + $title = ! empty( $instance['title'] ) ? $instance['title'] : __( 'Categories', 'default' ); /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */ $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); $c = ! empty( $instance['count'] ) ? '1' : '0'; @@ -60,8 +59,7 @@ public function widget( $args, $instance ) { $dropdown_id = ( $first_dropdown ) ? 'cat' : "{$this->id_base}-dropdown-{$this->number}"; $first_dropdown = false; echo ''; - // @codingStandardsIgnoreLine - $cat_args['show_option_none'] = __( 'Select Category' ); + $cat_args['show_option_none'] = __( 'Select Category', 'default' ); $cat_args['id'] = $dropdown_id; /** * Filters the arguments for the Categories widget drop-down. diff --git a/phpcs.xml b/phpcs.xml index 30f5ea64606..a64861cc5c1 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -7,7 +7,7 @@ - +