Skip to:
Content

bbPress.org

Changeset 5081


Ignore:
Timestamp:
08/19/2013 08:07:54 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Only allow topics to have an archive when the forums archive is showing forums (not topics). Fixes SEO concern where it was possible to have duplicate forum-archives at two different URL's.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bbpress.php

    r5068 r5081  
    574574                'capability_type'     => array( 'topic', 'topics' ),
    575575                'menu_position'       => 555555,
    576                 'has_archive'         => bbp_get_topic_archive_slug(),
     576                'has_archive'         => ( 'forums' === bbp_show_on_root() ) ? bbp_get_topic_archive_slug() : false,
    577577                'exclude_from_search' => true,
    578578                'show_in_nav_menus'   => false,
Note: See TracChangeset for help on using the changeset viewer.