Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/27/2017 02:26:44 AM (7 years ago)
Author:
johnjamesjacoby
Message:

Settings: Add a note to the _bbp_show_on_root setting if a forum archive template is found in the template stack.

Fixes confusion that would arise when using the archive-forum.php found in the /extras/ directory.

Fixes #3081.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/settings.php

    r6420 r6435  
    10021002    </select>
    10031003
    1004 <?php
     1004    <?php
     1005
     1006    // Look for theme support
     1007    $forum_archive = basename( bbp_get_forum_archive_template() );
     1008
     1009    // This setting doesn't work if the theme has an archive-forum.php template.
     1010    if ( ! empty( $forum_archive ) ) : ?>
     1011
     1012        <p class="description"><?php printf( esc_html__( 'This setting will be ignored because %s was found in your theme.', 'bbpress' ), '<code>' . $forum_archive . '</code>' ); ?></p>
     1013
     1014    <?php endif;
    10051015}
    10061016
Note: See TracChangeset for help on using the changeset viewer.