Skip to:
Content

BuddyPress.org

Changeset 2302


Ignore:
Timestamp:
01/15/2010 11:59:28 AM (16 years ago)
Author:
apeatling
Message:

Fixed incorrect echo on bp_root_domain() calls. Fixed #1288. Added warning to theme headers about copying themes.

Location:
trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs.php

    r2274 r2302  
    11<?php
    22
    3 define ( 'BP_BLOGS_DB_VERSION', '1800' );
     3define ( 'BP_BLOGS_DB_VERSION', '2000' );
    44
    55/* Define the slug for the component */
     
    6464
    6565    // On first installation - record all existing blogs in the system.
    66     if ( !(int)get_site_option( 'bp-blogs-first-install') ) {
     66    if ( !(int)get_site_option( 'bp-blogs-first-install') && bp_core_is_multisite() ) {
    6767        bp_blogs_record_existing_blogs();
    6868        add_site_option( 'bp-blogs-first-install', 1 );
  • trunk/bp-core/bp-core-wpabstraction.php

    r2299 r2302  
    4747    function update_site_option( $option_name, $option_value ) {
    4848        return update_option( $option_name, $option_value );
     49    }
     50}
     51
     52if ( !function_exists( 'delete_site_option' ) ) {
     53    function delete_site_option( $option_name ) {
     54        return delete_option( $option_name );
    4955    }
    5056}
  • trunk/bp-loader.php

    r2301 r2302  
    7474    delete_site_option( 'bp-xprofile-db-version' );
    7575    delete_site_option( 'bp-deactivated-components' );
     76    delete_site_option( 'bp-blogs-first-install' );
    7677
    7778    do_action( 'bp_loader_deactivate' );
  • trunk/bp-themes/bp-default/blogs/create.php

    r2284 r2302  
    88        <?php do_action( 'template_notices' ) ?>
    99
    10         <h2><?php _e( 'Create a Blog', 'buddypress' ) ?> &nbsp;<a class="button" href="<?php echo bp_root_domain() . '/' . BP_BLOGS_SLUG . '/' ?>"><?php _e( 'Blogs Directory', 'buddypress' ) ?></a></h2>
     10        <h2><?php _e( 'Create a Blog', 'buddypress' ) ?> &nbsp;<a class="button" href="<?php bp_root_domain() . '/' . BP_BLOGS_SLUG . '/' ?>"><?php _e( 'Blogs Directory', 'buddypress' ) ?></a></h2>
    1111
    1212        <?php do_action( 'bp_before_create_blog_content' ) ?>
  • trunk/bp-themes/bp-default/blogs/index.php

    r2284 r2302  
    66        <form action="" method="post" id="blogs-directory-form" class="dir-form">
    77
    8             <h2><?php _e( 'Blogs Directory', 'buddypress' ) ?><?php if ( is_user_logged_in() && bp_blog_signup_enabled() ) : ?> &nbsp;<a class="button" href="<?php echo bp_root_domain() . '/' . BP_BLOGS_SLUG . '/create/' ?>"><?php _e( 'Create a Blog', 'buddypress' ) ?></a><?php endif; ?></h2>
     8            <h2><?php _e( 'Blogs Directory', 'buddypress' ) ?><?php if ( is_user_logged_in() && bp_blog_signup_enabled() ) : ?> &nbsp;<a class="button" href="<?php bp_root_domain() . '/' . BP_BLOGS_SLUG . '/create/' ?>"><?php _e( 'Create a Blog', 'buddypress' ) ?></a><?php endif; ?></h2>
    99
    1010            <?php do_action( 'bp_before_directory_blogs_content' ) ?>
  • trunk/bp-themes/bp-default/groups/create.php

    r2284 r2302  
    55
    66        <form action="<?php bp_group_creation_form_action() ?>" method="post" id="create-group-form" class="standard-form" enctype="multipart/form-data">
    7             <h2><?php _e( 'Create a Group', 'buddypress' ) ?> &nbsp;<a class="button" href="<?php echo bp_root_domain() . '/' . BP_GROUPS_SLUG . '/' ?>"><?php _e( 'Groups Directory', 'buddypress' ) ?></a></h2>
     7            <h2><?php _e( 'Create a Group', 'buddypress' ) ?> &nbsp;<a class="button" href="<?php bp_root_domain() . '/' . BP_GROUPS_SLUG . '/' ?>"><?php _e( 'Groups Directory', 'buddypress' ) ?></a></h2>
    88
    99            <?php do_action( 'bp_before_create_group' ) ?>
  • trunk/bp-themes/bp-default/groups/index.php

    r2284 r2302  
    55
    66        <form action="" method="post" id="groups-directory-form" class="dir-form">
    7             <h2><?php _e( 'Groups Directory', 'buddypress' ) ?><?php if ( is_user_logged_in() ) : ?> &nbsp;<a class="button" href="<?php echo bp_root_domain() . '/' . BP_GROUPS_SLUG . '/create/' ?>"><?php _e( 'Create a Group', 'buddypress' ) ?></a><?php endif; ?></h2>
     7            <h2><?php _e( 'Groups Directory', 'buddypress' ) ?><?php if ( is_user_logged_in() ) : ?> &nbsp;<a class="button" href="<?php bp_root_domain() . '/' . BP_GROUPS_SLUG . '/create/' ?>"><?php _e( 'Create a Group', 'buddypress' ) ?></a><?php endif; ?></h2>
    88
    99            <?php do_action( 'bp_before_directory_groups_content' ) ?>
  • trunk/bp-themes/bp-default/members/members-loop.php

    r2284 r2302  
    4444                  * (only one regadless of the number of fields you show):
    4545                  *
    46                   * bp_member_profile_field_data( 'field=the field name' );
     46                  * bp_member_profile_data( 'field=the field name' );
    4747                  */
    4848                ?>
  • trunk/bp-themes/bp-default/sidebar.php

    r2209 r2302  
    3333
    3434            <input type="submit" name="wp-submit" id="userbar_wp-submit" value="<?php _e('Log In'); ?>" tabindex="100" />
    35             <input type="hidden" name="redirect_to" value="<?php echo bp_root_domain() ?>" />
     35            <input type="hidden" name="redirect_to" value="<?php bp_root_domain() ?>" />
    3636            <input type="hidden" name="testcookie" value="1" />
    3737        </form>
  • trunk/bp-themes/bp-default/style.css

    r2239 r2302  
    77Author URI: http://buddypress.org
    88Tags: buddypress, two-columns, custom-header, white, blue
     9
     10** IMPORTANT **
     11If you want to make a custom theme based on this theme, DO NOT copy and edit it. By
     12doing this you will make upgrades and maintainence much harder for yourself.
     13Instead, please read this codex page on how to build a BuddyPress child themes:
     14
     15http://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/
    916*/
    1017
  • trunk/bp-themes/bp-sn-parent/header.php

    r2077 r2302  
    5656                    <?php endif; ?>
    5757
    58                     <input type="hidden" name="redirect_to" value="<?php echo bp_root_domain() ?>" />
     58                    <input type="hidden" name="redirect_to" value="<?php bp_root_domain() ?>" />
    5959                    <input type="hidden" name="testcookie" value="1" />
    6060
  • trunk/bp-themes/bp-sn-parent/style.css

    r2237 r2302  
    66Author: BuddyPress.org
    77Author URI: http://buddypress.org
     8
     9** IMPORTANT **
     10If you want to make a custom theme based on this theme, DO NOT copy and edit it. By
     11doing this you will make upgrades and maintainence much harder for yourself.
     12Instead, please read this codex page on how to build a BuddyPress child themes:
     13
     14http://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/
    815*/
    916
  • trunk/bp-themes/bp-sn-parent/userbar.php

    r2077 r2302  
    3636            <p class="submit">
    3737                <input type="submit" name="wp-submit" id="userbar_wp-submit" value="<?php _e('Log In'); ?>" tabindex="100" />
    38                 <input type="hidden" name="redirect_to" value="<?php echo bp_root_domain() ?>" />
     38                <input type="hidden" name="redirect_to" value="<?php bp_root_domain() ?>" />
    3939                <input type="hidden" name="testcookie" value="1" />
    4040            </p>
Note: See TracChangeset for help on using the changeset viewer.