Changeset 14776 for sites/trunk/buddypress.org/public_html/wp-content/plugins/bbpress-org/bbpress-dot-org.php
- Timestamp:
- 03/30/2026 02:05:11 AM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/buddypress.org/public_html/wp-content/plugins/bbpress-org/bbpress-dot-org.php
r1468 r14776 4 4 * Plugin Name: bbPress.org Tweaks 5 5 * Description: Code specific to bbPress.org 6 * Version: 1.0. 56 * Version: 1.0.6 7 7 * Author: jjj 8 8 * Author URI: http://jaco.by … … 11 11 // Include files 12 12 include_once( plugin_dir_path( __FILE__ ) . 'toolbar.php' ); 13 include_once( plugin_dir_path( __FILE__ ) . 'tools.php' );14 13 15 14 /** … … 22 21 */ 23 22 function bbporg_admin_redirect() { 24 if ( ! current_user_can( 'contributor' ) 25 || ! current_user_can( 'author' ) 26 || ! current_user_can( 'editor' ) 27 || ! current_user_can( 'administrator' ) 28 ) 23 if ( current_user_can( 'manage_options' ) ) { 29 24 return; 25 } 30 26 31 27 wp_safe_redirect( home_url( '/' ) ); … … 33 29 } 34 30 add_action( 'bbp_admin_init', 'bbporg_admin_redirect' ); 35 36 /**37 * Filter the users edit profile URL and use bbPress's theme-side edit instead38 *39 * @author johnjamesjacoby40 * @since 1.041 * @param string $user_edit42 * @return string43 */44 function bbporg_filter_profile_edit_url( $user_edit = '' ) {45 46 // Bail if bbPress is not active47 if ( ! function_exists( 'bbp_get_user_profile_edit_url' ) ) {48 return $user_edit;49 }50 51 $user_edit = bbp_get_user_profile_edit_url( bbp_get_current_user_id() );52 return $user_edit;53 }54 add_filter( 'edit_profile_url', 'bbporg_filter_profile_edit_url' );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)