WordPress.org

Make WordPress Core

#18610 closed defect (bug) (fixed)

show_option_all for wp_list_categories doesn't respect 'Posts page'

Reported by: smerriman Owned by: ryan
Priority: normal Milestone: 3.3
Component: General Version:
Severity: normal Keywords: has-patch
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 22 months ago.

Download all attachments as: .zip

Change History (4)

solarissmoke22 months ago

comment:1 solarissmoke22 months 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 SergeyBiryukov22 months ago

  • Milestone changed from Awaiting Review to 3.3

comment:3 ryan19 months 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.