Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#21064 closed enhancement (fixed)

Recent Posts widget: provide optional post date display

Reported by: lancewillett's profile lancewillett Owned by: westi's profile westi
Milestone: 3.5 Priority: normal
Severity: normal Version: 3.4
Component: Widgets Keywords: has-patch dev-feedback commit
Focuses: Cc:

Description

As a small enhancement to the Recent Posts widget, add an option to display the post date next to each post. Similar to how the RSS Widget date can be added to the display.

If enabled (should be off by default) -- the widget's HTML output should include the post date after the post title. The date format should match the WP user-set date format.

Attachments (5)

example-visual-output.png (36.3 KB) - added by lancewillett 12 years ago.
21064.patch (3.7 KB) - added by lancewillett 12 years ago.
21064.2.patch (3.8 KB) - added by SergeyBiryukov 12 years ago.
recent-posts-07-05.png (26.2 KB) - added by DrewAPicture 12 years ago.
Sans mdash FF 14
21064.3.patch (841 bytes) - added by lancewillett 12 years ago.
Fixes closing label tag

Download all attachments as: .zip

Change History (15)

@lancewillett
12 years ago

#1 @ocean90
12 years ago

  • Cc ocean90 added

#2 @SergeyBiryukov
12 years ago

  • Milestone changed from Awaiting Review to 3.5

Looks good to me.

Minor edit in line 576 (only switch to PHP to print the date) for consistency with line 574.

@DrewAPicture
12 years ago

Sans mdash FF 14

#3 @DrewAPicture
12 years ago

Looks good in FF14, Safari 6, Chrome 21 => recent-posts-07-05.png

#4 @lancewillett
12 years ago

Would love a core dev feedback and blessing to get this into 3.5, it's a nice improvement and Twenty Twelve can show it off.

#5 follow-up: @lancewillett
12 years ago

  • Keywords commit added

Ready for a code review and commit, please.

#6 in reply to: ↑ 5 @westi
12 years ago

Replying to lancewillett:

Ready for a code review and commit, please.

Looks good to me and is a great enhancement to the widget.

#7 @westi
12 years ago

  • Owner set to westi
  • Status changed from new to accepted

#8 @westi
12 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In [21935]:

Widgets: Add support for display the post date in the Recent Posts widget. Fixes #21064 props lancewillett and SergeyBiryukov.

@lancewillett
12 years ago

Fixes closing label tag

#9 @lancewillett
12 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

Facepalm moment, I didn't close one of the label tags. This causes brokenness in IE browsers on the Widgets admin page; can't drag and drop widgets.

#10 @nacin
12 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

In [21978]:

Close label. props lancewillett, fixes #21064.

Note: See TracTickets for help on using tickets.