WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#18610 closed defect (bug) (fixed)

show_option_all for wp_list_categories doesn't respect 'Posts page'

Reported by: smerriman Owned by: ryan
Milestone: 3.3 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: Cc:

Description

In the wp_list_categories function, if show_option_all is set, a link for 'showing all categories' is included to get_bloginfo( 'url' ).

This should instead be linking to the Posts Page set on Settings - Reading if it has been set.

Attachments (1)

18610.diff (1.1 KB) - added by solarissmoke 3 years ago.

Download all attachments as: .zip

Change History (4)

solarissmoke3 years ago

comment:1 solarissmoke3 years ago

  • Keywords has-patch added

Patch fixes that. I've also added a bit of escaping to the URL's, as it seems to be what happens most other places.

comment:2 SergeyBiryukov3 years ago

  • Milestone changed from Awaiting Review to 3.3

comment:3 ryan3 years ago

  • Owner set to ryan
  • Resolution set to fixed
  • Status changed from new to closed

In [19273]:

Link show_option_all in wp_list_categories() to the posts page if one is set. Props solarissmoke. fixes #18610

Note: See TracTickets for help on using tickets.