Skip to:
Content

bbPress.org

Changeset 6853 for trunk/src/bbpress.php


Ignore:
Timestamp:
08/10/2018 09:50:53 PM (6 years ago)
Author:
johnjamesjacoby
Message:

Permalinks: merge root-slug usage into whichever is shown on root.

This change removes the double-archive juggle of having both forums and topics available as archives at the same time, which is traditionally not desirable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bbpress.php

    r6842 r6853  
    518518                'capability_type'     => array( 'forum', 'forums' ),
    519519                'menu_position'       => 555555,
    520                 'has_archive'         => bbp_get_root_slug(),
     520                'has_archive'         => ( 'forums' === bbp_show_on_root() ) ? bbp_get_root_slug() : false,
    521521                'exclude_from_search' => true,
    522522                'show_in_nav_menus'   => true,
     
    544544                'capability_type'     => array( 'topic', 'topics' ),
    545545                'menu_position'       => 555555,
    546                 'has_archive'         => ( 'forums' === bbp_show_on_root() ) ? bbp_get_topic_archive_slug() : false,
     546                'has_archive'         => ( 'topics' === bbp_show_on_root() ) ? bbp_get_root_slug() : false,
    547547                'exclude_from_search' => true,
    548548                'show_in_nav_menus'   => false,
Note: See TracChangeset for help on using the changeset viewer.