Changeset 6136
- Timestamp:
- 06/24/2012 08:50:00 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/bp-forums/bp-forums-admin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-admin.php
r6134 r6136 112 112 113 113 $step = isset( $_REQUEST['step'] ) ? $_REQUEST['step'] : ''; 114 115 // The text and URL of the Site Wide Forums button differs depending on whether bbPress 116 // is running 117 if ( is_plugin_active( 'bbpress/bbpress.php' ) ) { 118 // The bbPress admin page will always be on the root blog. switch_to_blog() will 119 // pass through if we're already there. 120 switch_to_blog( bp_get_root_blog_id() ); 121 $button_url = admin_url( add_query_arg( array( 'page' => 'bbpress' ), 'options-general.php' ) ); 122 restore_current_blog(); 123 124 $button_text = __( 'Configure Site Wide Forums', 'buddypress' ); 125 } else { 126 $button_url = bp_get_admin_url( add_query_arg( array( 'tab' => 'plugin-information', 'plugin' => 'bbpress', 'TB_iframe' => 'true', 'width' => '640', 'height' => '500' ), 'plugin-install.php' ) ); 127 $button_text = __( 'Install Site Wide Forums', 'buddypress' ); 128 } 114 129 115 130 switch( $step ) { … … 216 231 </ul> 217 232 <div> 218 <a class="button thickbox button-primary" href="<?php bp_admin_url( add_query_arg( array( 'tab' => 'plugin-information', 'plugin' => 'bbpress', 'TB_iframe' => 'true', 'width' => '640', 'height' => '500' ), 'plugin-install.php' ) ); ?>"><?php _e( 'Install Site Wide Forums', 'buddypress') ?></a> 233 <a class="button thickbox button-primary" href="<?php echo esc_attr( $button_url ) ?>"><?php echo esc_html( $button_text ) ?></a> 219 234 </div> 220 235 </div>
Note: See TracChangeset
for help on using the changeset viewer.