|
@@ 202-206 (lines=5) @@
|
| 199 |
|
*/ |
| 200 |
|
static function get_date_filter_type_name( $type, $is_updated = false ) { |
| 201 |
|
switch ( $type ) { |
| 202 |
|
case 'year': |
| 203 |
|
$string = ( $is_updated ) |
| 204 |
|
? esc_html_x( 'Year Updated', 'label for filtering posts', 'jetpack' ) |
| 205 |
|
: esc_html_x( 'Year', 'label for filtering posts', 'jetpack' ); |
| 206 |
|
break; |
| 207 |
|
case 'month': |
| 208 |
|
default: |
| 209 |
|
$string = ( $is_updated ) |
|
@@ 208-212 (lines=5) @@
|
| 205 |
|
: esc_html_x( 'Year', 'label for filtering posts', 'jetpack' ); |
| 206 |
|
break; |
| 207 |
|
case 'month': |
| 208 |
|
default: |
| 209 |
|
$string = ( $is_updated ) |
| 210 |
|
? esc_html_x( 'Month Updated', 'label for filtering posts', 'jetpack' ) |
| 211 |
|
: esc_html_x( 'Month', 'label for filtering posts', 'jetpack' ); |
| 212 |
|
break; |
| 213 |
|
} |
| 214 |
|
|
| 215 |
|
return $string; |