@@ 193-197 (lines=5) @@ | ||
190 | */ |
|
191 | static function get_date_filter_type_name( $type, $is_updated = false ) { |
|
192 | switch ( $type ) { |
|
193 | case 'year': |
|
194 | $string = ( $is_updated ) |
|
195 | ? esc_html_x( 'Year Updated', 'label for filtering posts', 'jetpack' ) |
|
196 | : esc_html_x( 'Year', 'label for filtering posts', 'jetpack' ); |
|
197 | break; |
|
198 | case 'month': |
|
199 | default: |
|
200 | $string = ( $is_updated ) |
|
@@ 199-203 (lines=5) @@ | ||
196 | : esc_html_x( 'Year', 'label for filtering posts', 'jetpack' ); |
|
197 | break; |
|
198 | case 'month': |
|
199 | default: |
|
200 | $string = ( $is_updated ) |
|
201 | ? esc_html_x( 'Month Updated', 'label for filtering posts', 'jetpack' ) |
|
202 | : esc_html_x( 'Month', 'label for filtering posts', 'jetpack' ); |
|
203 | break; |
|
204 | } |
|
205 | ||
206 | return $string; |