Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#37259 closed enhancement (fixed)

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

Reported by: henrywright's profile henry.wright Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 4.7 Priority: normal
Severity: normal Version: 4.5.3
Component: Users Keywords: has-patch 4.7-early
Focuses: template Cc:

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 8 years ago.
37259.2.diff (758 bytes) - added by dlh 8 years ago.

Download all attachments as: .zip

Change History (16)

#1 in reply to: ↑ description @SergeyBiryukov
8 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
8 years ago

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

#3 @SergeyBiryukov
8 years ago

  • Keywords needs-patch added

#4 @SergeyBiryukov
8 years ago

  • Component changed from General to Users

@henry.wright
8 years ago

#5 @henry.wright
8 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
8 years ago

  • Keywords has-patch added; needs-patch removed

#7 @SergeyBiryukov
8 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.


8 years ago

#9 @SergeyBiryukov
8 years ago

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

#10 @SergeyBiryukov
8 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
8 years ago

#11 @dlh
8 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

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

#12 @SergeyBiryukov
8 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
8 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.


8 years ago

Note: See TracTickets for help on using tickets.