Skip to:
Content

Changeset 6854


Ignore:
Timestamp:
08/10/2018 10:01:46 PM (8 months ago)
Author:
johnjamesjacoby
Message:

Revert r6853. This breaks pages with matching slug paths.

Will revisit this more thoroughly in a future version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bbpress.php

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