Opened 8 months ago

Closed 2 months ago

#22005 closed enhancement (fixed)

Twenty Thirteen: remove custom comment callback in favor of core `comment_form()` defaults

Reported by: lancewillett Owned by: lancewillett
Priority: normal Milestone: 3.6
Component: Bundled Theme Version:
Severity: normal Keywords: has-patch
Cc: bpetty

Description

Related to improvements to core comment form markup, see #20088.

Notes:

  • We might need to remove the Post Author span element from the output, and use CSS instead to denote the post author's comments (background color, border, etc)
  • Twenty Twelve should be styled to work well with 3.4 comment form output (not just with the new #20088 output)
  • Use comment_form() arguments so that plugins and child themes can override anything

Attachments (2)

22005.first-pass.diff (10.3 KB) - added by obenland 8 months ago.
22005.1.diff (5.5 KB) - added by obenland 2 months ago.

Download all attachments as: .zip

Change History (17)

  • Milestone changed from 3.5 to Future Release

Discussing in IRC dev chat yesterday, punting this to Twenty Twelve 1.1 but still intending to get it in before 3.5 stable hits.

  • Milestone changed from Future Release to 3.5

comment:3 in reply to: ↑ description ; follow-up: ↓ 4   obenland8 months ago

Replying to lancewillett:

  • We might need to remove the Post Author span element from the output, and use CSS instead to denote the post author's comments (background color, border, etc)

I think we might be able to just append it to the get_comment_author_link() output.


  • Twenty Twelve should be styled to work well with 3.4 comment form output (not just with the new #20088 output)
  • Use comment_form() arguments so that plugins and child themes can override anything

How is twentytwelve_comment() related to comment_form()? Did you mean wp_list_comments()?

comment:4 in reply to: ↑ 3   lancewillett8 months ago

Replying to obenland:

  • Use comment_form() arguments so that plugins and child themes can override anything

How is twentytwelve_comment() related to comment_form()? Did you mean wp_list_comments()?

Yep, my mistake.

22005.first-pass.diff makes comment styling work with default 3.4 wp_list_comments() output. Actual call would be wp_list_comments( array( 'avatar_size' => 44 ) );

This would have been nice. What's the verdict? Doable? Not doable?

I was looking over this one yesterday, and it seem like whatever is decided with #20088 is going to affect this ticket, maybe enough so that it's a dependency, so I figured since #20088 was just punted, this one probably should be too.

  • Milestone 3.5 deleted
  • Resolution set to wontfix
  • Status changed from new to closed

I agree with bpetty, this is too dependent on #20888 and not doable for 3.5 after all. Let's shoot for Twenty Thirteen not having a custom comment list function at all, out of the gate.

Version 0, edited 6 months ago by lancewillett (next)
  • Cc bpetty added
  • Milestone set to 3.6
  • Resolution wontfix deleted
  • Status changed from closed to reopened

Well, it looks like Twenty Thirteen didn't make it out of the gate without it's own custom comment list function.

bpetty -- why did you open this ticket? It's for Twenty Twelve.

  • Summary changed from Twenty Twelve: remove twentytwelve_comment() in favor of core comment_form() defaults to Twenty Thirteen: remove custom comment callback in favor of core `comment_form()` defaults
  • Keywords needs-refresh added

Noting for next steps: once #20088 change is in core, we can update the patch here for Twenty Thirteen.

  • Remove the custom callback
  • Add the new html5 argument to wp_list_comments()
  • Adjust any CSS to style the output from core
  • Keywords has-patch added; needs-patch needs-refresh removed

Love seeing all the red in .1 patch. ;)

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

In 23696:

Twenty Thirteen: remove custom comment callback in favor of core comment_form() defaults. Props obenland, closes #22005. See #20088.

Note: See TracTickets for help on using tickets.