Skip to:
Content

BuddyPress.org

Changeset 6195


Ignore:
Timestamp:
07/23/2012 07:43:55 PM (12 years ago)
Author:
djpaul
Message:

In BP's forums settings screen, prevent the "configure site wide forums" link opening in a thickbox iframe if bbPress is already active; instead, just link directly to bbPress' settings screen.

Fixes #4366

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-admin.php

    r6138 r6195  
    110110
    111111function bp_forums_bbpress_install_wizard() {
    112     $post_url = network_admin_url( 'admin.php?page=bb-forums-setup' );
     112    $post_url                 = network_admin_url( 'admin.php?page=bb-forums-setup' );
     113    $bbpress_plugin_is_active = false;
    113114
    114115    $step = isset( $_REQUEST['step'] ) ? $_REQUEST['step'] : '';
     
    117118    // is running
    118119    if ( is_plugin_active( 'bbpress/bbpress.php' ) ) {
     120        $bbpress_plugin_is_active = true;
     121
    119122        // The bbPress admin page will always be on the root blog. switch_to_blog() will
    120123        // pass through if we're already there.
     
    232235                    </ul>
    233236                    <div>
    234                         <a class="button thickbox button-primary" href="<?php echo esc_attr( $button_url ) ?>"><?php echo esc_html( $button_text ) ?></a> &nbsp;
     237                        <a class="button button-primary <?php if ( ! $bbpress_plugin_is_active ) { echo esc_attr( 'thickbox' ); }?>" href="<?php echo esc_attr( $button_url ) ?>"><?php echo esc_html( $button_text ) ?></a> &nbsp;
    235238                    </div>
    236239                </div>
Note: See TracChangeset for help on using the changeset viewer.