Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/06/2012 04:24:22 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Admin Audit:

  • Introduce bp_is_network_activated() to tell if BuddyPress is active at a network level.
  • Use bp_is_network_activated() in places where multiblog or single-site activation might mistakingly link to the incorrect site/network admin.
  • Add phpdoc to bp_is_multiblog_mode() to further explain why it exists, and why you should not use it.
  • Audit usage of network_admin_url() and admin_url(), and replace with bp_get_admin_url() where appropriate.
  • Escape some admin URL usages; maybe more to do here.
File:
1 edited

Legend:

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

    r6195 r6310  
    44
    55function bp_forums_add_admin_menu() {
    6     global $bp;
    76
    87    if ( !is_super_admin() )
     
    2322 */
    2423function bp_forums_bbpress_admin() {
    25     global $bp;
    2624
    2725    // The text and URL of the Site Wide Forums button differs depending on whether bbPress
     
    110108
    111109function bp_forums_bbpress_install_wizard() {
    112     $post_url                 = network_admin_url( 'admin.php?page=bb-forums-setup' );
     110    $post_url                 = bp_get_admin_url( 'admin.php?page=bb-forums-setup' );
    113111    $bbpress_plugin_is_active = false;
    114112
Note: See TracChangeset for help on using the changeset viewer.