WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#37259 closed enhancement (fixed)

the_archive_description() doesn't output a description on author archive pages

Reported by: henry.wright Owned by: SergeyBiryukov
Milestone: 4.7 Priority: normal
Severity: normal Version: 4.5.3
Component: Users Keywords: has-patch 4.7-early
Focuses: template Cc:
PR Number:

Description

the_archive_description() uses term_description() to output a description on archive pages. Tag, term and category archives are covered but author archives aren't.

Related is the_archive_title(). This function outputs a title on all archive pages as would be expected.

Attachments (2)

37259.diff (899 bytes) - added by henry.wright 3 years ago.
37259.2.diff (758 bytes) - added by dlh 3 years ago.

Download all attachments as: .zip

Change History (16)

#1 in reply to: ↑ description @SergeyBiryukov
3 years ago

  • Focuses template added

Replying to henry.wright:

the_archive_description() uses term_description() to output a description on archive pages. Tag, term and category archives are covered but author archives aren't.

Where should an author archive description come from? The author's "Biographical Info" field?

#2 @henry.wright
3 years ago

The author bio does seem like the most appropriate field to use for this.

#3 @SergeyBiryukov
3 years ago

  • Keywords needs-patch added

#4 @SergeyBiryukov
3 years ago

  • Component changed from General to Users

@henry.wright
3 years ago

#5 @henry.wright
3 years ago

Hi all,

The attached patch adds support for author archives when using get_the_archive_description().

Patch submitted from WordCamp Brighton Contributor Day.

#6 @henry.wright
3 years ago

  • Keywords has-patch added; needs-patch removed

#7 @SergeyBiryukov
3 years ago

  • Keywords 4.7-early added
  • Milestone changed from Awaiting Review to Future Release

This ticket was mentioned in Slack in #core by helen. View the logs.


3 years ago

#9 @SergeyBiryukov
3 years ago

  • Milestone changed from Future Release to 4.7
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#10 @SergeyBiryukov
3 years ago

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

In 38486:

Template: In get_the_archive_description(), add support for author archives.

Props henry.wright.
Fixes #37259.

@dlh
3 years ago

#11 @dlh
3 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

[38486] sets $description but doesn't use it. Patch attached.

#12 @SergeyBiryukov
3 years ago

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

In 38493:

Template: After [38486], actually use the $description variable in get_the_archive_description().

Props dlh.
Fixes #37259.

#13 @SergeyBiryukov
3 years ago

In 38495:

Docs: Move term_description() reference from filter docblock to get_the_archive_description() function docblock.

Props dlh.
See #37259.

This ticket was mentioned in Slack in #core by swissspidy. View the logs.


3 years ago

Note: See TracTickets for help on using tickets.