Changeset 10183 for trunk/src/bp-forums/deprecated/1.6.php
- Timestamp:
- 10/04/2015 07:29:24 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-forums/deprecated/1.6.php
r9819 r10183 1 1 <?php 2 3 2 /** 4 * BuddyPress Forums Deprecated Functions 3 * BuddyPress Forums Deprecated Functions. 5 4 * 6 5 * This file contains all the deprecated functions for BuddyPress forums since … … 12 11 */ 13 12 14 // Exit if accessed directly 13 // Exit if accessed directly. 15 14 defined( 'ABSPATH' ) || exit; 16 15 … … 21 20 22 21 // The text and URL of the Site Wide Forums button differs depending on whether bbPress 23 // is running 22 // is running. 24 23 if ( is_plugin_active( 'bbpress/bbpress.php' ) ) { 25 24 // The bbPress admin page will always be on the root blog. switch_to_blog() will … … 54 53 if ( isset( $_REQUEST['reinstall'] ) || !bp_forums_is_installed_correctly() ) : 55 54 56 // Delete the bb-config.php location option 55 // Delete the bb-config.php location option. 57 56 bp_delete_option( 'bb-config-location' ); 58 57 59 // Now delete the bb-config.php file 58 // Now delete the bb-config.php file. 60 59 @unlink( ABSPATH . 'bb-config.php' ); 61 60 62 // show the updated wizard61 // Show the updated wizard. 63 62 bp_forums_bbpress_install_wizard(); 64 63 … … 121 120 122 121 // The text and URL of the Site Wide Forums button differs depending on whether bbPress 123 // is running 122 // is running. 124 123 if ( is_plugin_active( 'bbpress/bbpress.php' ) ) { 125 124 $bbpress_plugin_is_active = true; … … 172 171 break; 173 172 default: 174 // Just write the contents to screen 173 // Just write the contents to screen. 175 174 _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' ); ?> 176 175 … … 200 199 <?php } else { 201 200 202 // Include the plugin install 203 201 // Include the plugin install. 204 202 add_thickbox(); 205 203 wp_enqueue_script( 'plugin-install' );
Note: See TracChangeset
for help on using the changeset viewer.