Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement / Date format setting #757

Merged
merged 12 commits into from
Feb 16, 2017
Merged

Enhancement / Date format setting #757

merged 12 commits into from
Feb 16, 2017

Conversation

cwpnolen
Copy link
Contributor

These changes allow the user to define how they would like their job listing dates to be formatted. This works as follows:

  1. Via WP Admin, navigate to Job Listings > Settings
  2. In the "Job Listings" tab, via the "Date Format" drop down choose whether to use the plugins human_diff date format or the date format defined in WordPress settings.

This required creating a new function "the_job_publish_date" and has the added benefit to make the rendered date more DRY. Also added an additional function "get_the_job_publish_date" that returns only the formatted date. This function is not being used currently and was only put in as a future consideration.

Also updated the element to use the element with the datetime attribute.

@dbtlr
Copy link
Contributor

dbtlr commented Feb 15, 2017

Sorry this took a while to properly review.

This looks good to me.

@cwpnolen: can you please fix the conflicts with master? I'll get this merged soon after.

Thanks!

@cwpnolen
Copy link
Contributor Author

No worries @dbtlr

I have fixed the conflicts with master. Please take a look.

@dbtlr
Copy link
Contributor

dbtlr commented Feb 15, 2017

Perfect, thanks @cwpnolen. I'll be merging this soon. :)

@dbtlr dbtlr merged commit ab9fce8 into Automattic:master Feb 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants