Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/04/2015 07:29:24 AM (5 years ago)
Author:
tw2113
Message:

Initial documentation cleanup for the BP Forums Component.

See #6397.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-forums/deprecated/1.6.php

    r9819 r10183  
    11<?php
    2 
    32/**
    4  * BuddyPress Forums Deprecated Functions
     3 * BuddyPress Forums Deprecated Functions.
    54 *
    65 * This file contains all the deprecated functions for BuddyPress forums since
     
    1211 */
    1312
    14 // Exit if accessed directly
     13// Exit if accessed directly.
    1514defined( 'ABSPATH' ) || exit;
    1615
     
    2120
    2221    // The text and URL of the Site Wide Forums button differs depending on whether bbPress
    23     // is running
     22    // is running.
    2423    if ( is_plugin_active( 'bbpress/bbpress.php' ) ) {
    2524        // The bbPress admin page will always be on the root blog. switch_to_blog() will
     
    5453        if ( isset( $_REQUEST['reinstall'] ) || !bp_forums_is_installed_correctly() ) :
    5554
    56             // Delete the bb-config.php location option
     55            // Delete the bb-config.php location option.
    5756            bp_delete_option( 'bb-config-location' );
    5857
    59             // Now delete the bb-config.php file
     58            // Now delete the bb-config.php file.
    6059            @unlink( ABSPATH . 'bb-config.php' );
    6160
    62             // show the updated wizard
     61            // Show the updated wizard.
    6362            bp_forums_bbpress_install_wizard();
    6463
     
    121120
    122121    // The text and URL of the Site Wide Forums button differs depending on whether bbPress
    123     // is running
     122    // is running.
    124123    if ( is_plugin_active( 'bbpress/bbpress.php' ) ) {
    125124        $bbpress_plugin_is_active = true;
     
    172171                        break;
    173172                    default:
    174                         // Just write the contents to screen
     173                        // Just write the contents to screen.
    175174                        _e( '<p>A configuration file could not be created. No problem, but you will need to save the text shown below into a file named <code>bb-config.php</code> in the root directory of your WordPress installation before you can start using the forum functionality.</p>', 'buddypress' ); ?>
    176175
     
    200199            <?php } else {
    201200
    202                 // Include the plugin install
    203 
     201                // Include the plugin install.
    204202                add_thickbox();
    205203                wp_enqueue_script( 'plugin-install' );
Note: See TracChangeset for help on using the changeset viewer.