Skip to content

Commit

Permalink
Revert changes to external media
Browse files Browse the repository at this point in the history
  • Loading branch information
creativecoder committed Oct 26, 2020
1 parent 4cc0db0 commit fc5a9ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/shared/external-media/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import { __ } from '@wordpress/i18n';
import { dateI18n } from '@wordpress/date';
import { map, range } from 'lodash';

export const SOURCE_WORDPRESS = 'wordpress';
export const SOURCE_GOOGLE_PHOTOS = 'google_photos';
Expand Down Expand Up @@ -173,7 +174,7 @@ export const CURRENT_YEAR = new Date().getFullYear();

export const MONTH_SELECT_OPTIONS = [
{ label: __( 'Any Month', 'jetpack' ), value: -1 },
...[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ].map( value => ( {
...map( range( 0, 12 ), value => ( {
// Following call generates a new date object for the particular month and gets its name.
label: dateI18n( 'F', new Date( [ 0, value + 1 ] ) ),
value,
Expand Down

0 comments on commit fc5a9ae

Please sign in to comment.