Skip to:
Content

BuddyPress.org

Changeset 4066


Ignore:
Timestamp:
02/23/2011 10:13:47 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Update branch version numbers to 1.2.8 and required WordPress version to 3.1. Backport WordPress network admin compat code from trunk. Update and fix spelling errors in readme.txt. Update address in license.txt. Update bbPress installer for network admin.

Location:
branches/1.2
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-activity.php

    r3775 r4066  
    9999        bp_activity_install();
    100100}
    101 add_action( 'admin_menu', 'bp_activity_check_installed' );
    102 add_action( 'network_admin_menu', 'bp_activity_check_installed' );
     101add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_activity_check_installed' );
    103102
    104103function bp_activity_setup_root_component() {
  • branches/1.2/bp-blogs.php

    r3775 r4066  
    6161    }
    6262}
    63 add_action( 'admin_menu', 'bp_blogs_check_installed' );
    64 add_action( 'network_admin_menu', 'bp_blogs_check_installed' );
     63add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_blogs_check_installed' );
    6564
    6665function bp_blogs_setup_globals() {
  • branches/1.2/bp-core.php

    r3775 r4066  
    285285        bp_core_install();
    286286}
    287 add_action( 'admin_menu', 'bp_core_check_installed' );
    288 add_action( 'network_admin_menu', 'bp_core_check_installed' );
     287add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_core_check_installed' );
    289288
    290289/**
     
    318317    add_submenu_page( 'bp-general-settings', __( 'Component Setup', 'buddypress'), __( 'Component Setup', 'buddypress' ), 'manage_options', 'bp-component-setup', 'bp_core_admin_component_setup' );
    319318}
    320 add_action( 'admin_menu', 'bp_core_add_admin_menu' );
    321 add_action( 'network_admin_menu', 'bp_core_add_admin_menu' );
     319add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_core_add_admin_menu' );
    322320
    323321/**
  • branches/1.2/bp-core/bp-core-admin.php

    r3026 r4066  
    4444                <?php if ( function_exists( 'xprofile_install' ) ) :?>
    4545                <tr>
    46                     <th scope="row"><?php _e( 'Base profile group name', 'buddypress' ) ?>:</th>
     46                    <th scope="row"><p><?php _e( 'Base profile group name', 'buddypress' ) ?>:</p></th>
    4747                    <td>
    4848                        <input name="bp-admin[bp-xprofile-base-group-name]" id="bp-xprofile-base-group-name" value="<?php echo get_site_option('bp-xprofile-base-group-name') ?>" />
     
    5050                </tr>
    5151                <tr>
    52                     <th scope="row"><?php _e( 'Full Name field name', 'buddypress' ) ?>:</th>
     52                    <th scope="row"><p><?php _e( 'Full Name field name', 'buddypress' ) ?>:</p></th>
    5353                    <td>
    5454                        <input name="bp-admin[bp-xprofile-fullname-field-name]" id="bp-xprofile-fullname-field-name" value="<?php echo get_site_option('bp-xprofile-fullname-field-name') ?>" />
     
    5656                </tr>
    5757                <tr>
    58                     <th scope="row"><?php _e( 'Disable BuddyPress to WordPress profile syncing?', 'buddypress' ) ?>:</th>
     58                    <th scope="row"><p><?php _e( 'Disable BuddyPress to WordPress profile syncing?', 'buddypress' ) ?>:</p></th>
    5959                    <td>
    6060                        <input type="radio" name="bp-admin[bp-disable-profile-sync]"<?php if ( (int)get_site_option( 'bp-disable-profile-sync' ) ) : ?> checked="checked"<?php endif; ?> id="bp-disable-profile-sync" value="1" /> <?php _e( 'Yes', 'buddypress' ) ?> &nbsp;
     
    6464                <?php endif; ?>
    6565                <tr>
    66                     <th scope="row"><?php _e( 'Hide admin bar for logged out users?', 'buddypress' ) ?>:</th>
     66                    <th scope="row"><p><?php _e( 'Hide admin bar for logged out users?', 'buddypress' ) ?>:</p></th>
    6767                    <td>
    6868                        <input type="radio" name="bp-admin[hide-loggedout-adminbar]"<?php if ( (int)get_site_option( 'hide-loggedout-adminbar' ) ) : ?> checked="checked"<?php endif; ?> id="bp-admin-hide-loggedout-adminbar-yes" value="1" /> <?php _e( 'Yes', 'buddypress' ) ?> &nbsp;
     
    7171                </tr>
    7272                <tr>
    73                     <th scope="row"><?php _e( 'Disable avatar uploads? (Gravatars will still work)', 'buddypress' ) ?>:</th>
     73                    <th scope="row"><p><?php _e( 'Disable avatar uploads? (Gravatars will still work)', 'buddypress' ) ?>:</p></th>
    7474                    <td>
    7575                        <input type="radio" name="bp-admin[bp-disable-avatar-uploads]"<?php if ( (int)get_site_option( 'bp-disable-avatar-uploads' ) ) : ?> checked="checked"<?php endif; ?> id="bp-admin-disable-avatar-uploads-yes" value="1" /> <?php _e( 'Yes', 'buddypress' ) ?> &nbsp;
     
    7878                </tr>
    7979                <tr>
    80                     <th scope="row"><?php _e( 'Disable user account deletion?', 'buddypress' ) ?>:</th>
     80                    <th scope="row"><p><?php _e( 'Disable user account deletion?', 'buddypress' ) ?>:</p></th>
    8181                    <td>
    8282                        <input type="radio" name="bp-admin[bp-disable-account-deletion]"<?php if ( (int)get_site_option( 'bp-disable-account-deletion' ) ) : ?> checked="checked"<?php endif; ?> id="bp-disable-account-deletion" value="1" /> <?php _e( 'Yes', 'buddypress' ) ?> &nbsp;
     
    8686                <?php if ( function_exists( 'bp_forums_setup') ) : ?>
    8787                <tr>
    88                     <th scope="row"><?php _e( 'Disable global forum directory?', 'buddypress' ) ?>:</th>
     88                    <th scope="row"><p><?php _e( 'Disable global forum directory?', 'buddypress' ) ?>:</p></th>
    8989                    <td>
    9090                        <input type="radio" name="bp-admin[bp-disable-forum-directory]"<?php if ( (int)get_site_option( 'bp-disable-forum-directory' ) ) : ?> checked="checked"<?php endif; ?> id="bp-disable-forum-directory" value="1" /> <?php _e( 'Yes', 'buddypress' ) ?> &nbsp;
     
    9595                <?php if ( function_exists( 'bp_activity_install') ) : ?>
    9696                <tr>
    97                     <th scope="row"><?php _e( 'Disable activity stream commenting on blog and forum posts?', 'buddypress' ) ?>:</th>
     97                    <th scope="row"><p><?php _e( 'Disable activity stream commenting on blog and forum posts?', 'buddypress' ) ?>:</p></th>
    9898                    <td>
    9999                        <input type="radio" name="bp-admin[bp-disable-blogforum-comments]"<?php if ( (int)get_site_option( 'bp-disable-blogforum-comments' ) || false === get_site_option( 'bp-disable-blogforum-comments' ) ) : ?> checked="checked"<?php endif; ?> id="bp-disable-blogforum-comments" value="1" /> <?php _e( 'Yes', 'buddypress' ) ?> &nbsp;
     
    104104
    105105                <tr>
    106                     <th scope="row"><?php _e( 'Default User Avatar', 'buddypress' ) ?></th>
     106                    <th scope="row"><p><?php _e( 'Default User Avatar', 'buddypress' ) ?></p></th>
    107107                    <td>
    108108                        <p><?php _e( 'For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their email address', 'buddypress' ) ?></p>
  • branches/1.2/bp-core/bp-core-cssjs.php

    r3279 r4066  
    4545<?php
    4646}
    47 add_action( 'admin_head', 'bp_core_admin_menu_icon_css' );
     47add_action( is_multisite() ? 'network_admin_menu' : 'admin_head', 'bp_core_admin_menu_icon_css' );
    4848
    4949function bp_core_confirmation_js() {
  • branches/1.2/bp-forums.php

    r3775 r4066  
    103103    add_submenu_page( 'bp-general-settings', __( 'Forums Setup', 'buddypress' ), __( 'Forums Setup', 'buddypress' ), 'manage_options', 'bb-forums-setup', "bp_forums_bbpress_admin" );
    104104}
    105 add_action( 'admin_menu', 'bp_forums_add_admin_menu' );
    106 add_action( 'network_admin_menu', 'bp_forums_add_admin_menu' );
     105add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_forums_add_admin_menu' );
    107106
    108107/* Forum Functions */
  • branches/1.2/bp-forums/bp-forums-admin.php

    r3186 r4066  
    1212                <p><?php _e( 'Settings Saved.', 'buddypress' ) ?></p>
    1313            </div>
    14         <?php endif; ?>
    15 
    16         <?php
     14        <?php endif;
    1715
    1816        if ( isset( $_REQUEST['reinstall'] ) || !bp_forums_is_installed_correctly() ) {
    1917            update_site_option( 'bb-config-location', false );
    2018            bp_forums_bbpress_install_wizard();
    21         } else { ?>
    22             <p><?php printf( __( 'bbPress forum integration in BuddyPress has been set up correctly. If you are having problems you can <a href="%s" title="Reinstall bbPress">re-install</a>', 'buddypress' ), site_url( 'wp-admin/admin.php?page=bb-forums-setup&reinstall=1' ) ); ?>
     19        } else {
     20            $url       = 'admin.php?page=bb-forums-setup&reinstall=1';
     21            $reinstall = is_multisite() ? network_admin_url( $url ) : admin_url( $url ); ?>
     22
     23            <p><?php printf( __( 'bbPress forum integration in BuddyPress has been set up correctly. If you are having problems you can <a href="%s" title="Reinstall bbPress">re-install</a>', 'buddypress' ), $reinstall ); ?>
    2324            <p><?php _e( 'NOTE: The forums directory will only work if your bbPress tables are in the same database as your WordPress tables. If you are not using an existing bbPress install you can ignore this message.', 'buddypress' ) ?></p>
     25
    2426        <?php
    2527        }
     
    3032
    3133function bp_forums_bbpress_install_wizard() {
    32     $post_url = site_url( 'wp-admin/admin.php?page=bb-forums-setup' );
     34    $url      = 'admin.php?page=bb-forums-setup';
     35    $post_url = is_multisite() ? network_admin_url( $url ) : admin_url( $url );
    3336
    3437    switch( $_REQUEST['step'] ) {
     
    6871                        // Just write the contents to screen
    6972                        _e( '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.', 'buddypress' );
    70                         ?><code style="display:block; margin-top: 30px;"><pre><?php echo htmlspecialchars( $result ) ?></pre></code><?php
     73                        ?><br /><textarea cols="110" rows="50" style="margin: 10px 0 50px 0;"><?php echo htmlspecialchars( $result ) ?></textarea><?php
    7174                        break;
    7275                }
  • branches/1.2/bp-friends.php

    r3775 r4066  
    6262        friends_install();
    6363}
    64 add_action( 'admin_menu', 'friends_check_installed' );
    65 add_action( 'network_admin_menu', 'friends_check_installed' );
     64add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'friends_check_installed' );
    6665
    6766function friends_setup_nav() {
  • branches/1.2/bp-groups.php

    r3775 r4066  
    117117        groups_install();
    118118}
    119 add_action( 'admin_menu', 'groups_check_installed' );
    120 add_action( 'network_admin_menu', 'groups_check_installed' );
     119add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'groups_check_installed' );
    121120
    122121function groups_setup_nav() {
  • branches/1.2/bp-loader.php

    r3568 r4066  
    55Description: Social networking in a box. Build a social network for your company, school, sports team or niche community all based on the power and flexibility of WordPress.
    66Author: The BuddyPress Community
    7 Version: 1.2.7
     7Version: 1.2.8
    88Author URI: http://buddypress.org/community/members/
    9 Site Wide Only: true
    109Network: true
    1110*/
    1211
    13 define( 'BP_VERSION', '1.2.7' );
     12define( 'BP_VERSION', '1.2.8' );
    1413
    1514/***
  • branches/1.2/bp-messages.php

    r3775 r4066  
    9797        messages_install();
    9898}
    99 add_action( 'admin_menu', 'messages_check_installed' );
    100 add_action( 'network_admin_menu', 'messages_check_installed' );
     99add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'messages_check_installed' );
    101100
    102101function messages_setup_nav() {
  • branches/1.2/bp-xprofile.php

    r3775 r4066  
    152152        xprofile_install();
    153153}
    154 add_action( 'admin_menu', 'xprofile_add_admin_menu' );
    155 add_action( 'network_admin_menu', 'xprofile_add_admin_menu' );
     154add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'xprofile_add_admin_menu' );
    156155
    157156/**
  • branches/1.2/bp-xprofile/bp-xprofile-cssjs.php

    r3804 r4066  
    99        wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . '/bp-xprofile/admin/css/admin.css' );
    1010}
    11 add_action( 'admin_menu', 'xprofile_add_admin_css' );
    12 add_action( 'network_admin_menu', 'xprofile_add_admin_css' );
     11add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'xprofile_add_admin_css' );
    1312
    1413function xprofile_add_admin_js() {
     
    2221    }
    2322}
    24 add_action( 'admin_menu', 'xprofile_add_admin_js', 1 );
    25 add_action( 'network_admin_menu', 'xprofile_add_admin_js', 1 );
     23add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'xprofile_add_admin_js', 1 );
    2624
    2725?>
  • branches/1.2/license.txt

    r1366 r4066  
    33
    44 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
    5                           675 Mass Ave, Cambridge, MA 02139, USA
     5 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
     6
    67 Everyone is permitted to copy and distribute verbatim copies
    78 of this license document, but changing it is not allowed.
  • branches/1.2/readme.txt

    r3569 r4066  
    22Contributors: apeatling, johnjamesjacoby, MrMaz, DJPaul, boonebgorges
    33Tags: buddypress, social networking, activity, profiles, messaging, friends, groups, forums, microblogging, twitter, facebook, mingle, social, community, networks, networking, cms
    4 Requires at least: 3.0
    5 Tested up to: 3.0.3
    6 Stable tag: 1.2.7
     4Requires at least: 3.1
     5Tested up to: 3.1
     6Stable tag: 1.2.8
    77
    88== Description ==
     
    6262Of course! First install and activate BuddyPress, then download and activate the <a href="http://wordpress.org/extend/plugins/bp-template-pack/">template extension pack</a>. This plugin will run you through the process step-by-step.
    6363
    64 Be sure to also try out the default theme bundled with BuddyPress. It provides all the awesome features of a standard WordPress blog, but also integrates the BuddyPress features both seamlessly and beautfully. It's also really easy to modify with custom header support, widget support and via a <a href="http://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/">child theme</a>.
     64Be sure to also try out the default theme bundled with BuddyPress. It provides all the awesome features of a standard WordPress blog, but also integrates the BuddyPress features both seamlessly and beautifully. It's also really easy to modify with custom header support, widget support and via a <a href="http://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/">child theme</a>.
    6565
    6666= Will this work on standard WordPress and WordPress MU? =
     
    9696== Languages ==
    9797
    98 BuddyPress is available in more than 20 languages. For more information about BuddyPress in your language please select a langauge site from the list below. Is your language missing? Please send a message to the <a href="http://lists.automattic.com/mailman/listinfo/wp-polyglots">WP-Polygots</a> mailing list and request for your language to be set up.
     98BuddyPress is available in more than 20 languages. For more information about BuddyPress in your language please select a language site from the list below. Is your language missing? Please send a message to the <a href="http://lists.automattic.com/mailman/listinfo/wp-polyglots">WP-Polygots</a> mailing list and request for your language to be set up.
    9999
    100100*   <a href="http://br.buddypress.org/">Brasil</a>
     
    118118*   <a href="http://tw.buddypress.org/">正體中文</a>
    119119
    120 The <a href="http://i18n.svn.buddypress.org/">BuddyPress langauge file repository</a> includes some language that have not yet set up a localization site.
     120The <a href="http://i18n.svn.buddypress.org/">BuddyPress language file repository</a> includes some language that have not yet set up a localization site.
    121121
    122122== Upgrade Notice ==
    123123
    124 = 1.2.7 =
    125 Fixes over 10 bugs.
     124= 1.2.8 =
     125Compatibility with WordPress 3.1
    126126
    127127== Changelog ==
Note: See TracChangeset for help on using the changeset viewer.