Changes from tags/1.5.1 at r5242 to tags/1.5 at r5172
- Location:
- tags/1.5
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/1.5/bp-activity/bp-activity-actions.php
r5242 r5172 191 191 192 192 // Do not proceed if user is not logged in, not viewing activity, or not posting 193 if ( !is_user_logged_in() || !bp_is_activity_component() || !bp_is_current_action( 'post' ) )193 if ( !is_user_logged_in() || bp_is_activity_component() || !bp_is_current_action( 'post' ) ) 194 194 return false; 195 195 -
tags/1.5/bp-activity/bp-activity-notifications.php
r5242 r5172 212 212 $to = apply_filters( 'bp_activity_new_comment_notification_comment_author_to', $to ); 213 213 $subject = apply_filters( 'bp_activity_new_comment_notification_comment_author_subject', $subject, $poster_name ); 214 $message = apply_filters( 'bp_activity_new_comment_notification_comment_author_message', $message, $poster_name, $content, $settings_link , $thread_link);214 $message = apply_filters( 'bp_activity_new_comment_notification_comment_author_message', $message, $poster_name, $content, $settings_link ); 215 215 216 216 wp_mail( $to, $subject, $message ); -
tags/1.5/bp-activity/bp-activity-template.php
r5242 r5172 2440 2440 */ 2441 2441 function bp_get_sitewide_activity_feed_link() { 2442 return apply_filters( 'bp_get_sitewide_activity_feed_link', bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/feed/');2442 return apply_filters( 'bp_get_sitewide_activity_feed_link', home_url( bp_get_activity_root_slug() . '/feed/' ) ); 2443 2443 } 2444 2444 -
tags/1.5/bp-core/admin/bp-core-update.php
r5242 r5172 266 266 267 267 function step_ms_update() { 268 global $wpdb;269 270 // Make sure that page info is pulled from bp_get_root_blog_id() (except when in271 // multisite mode)272 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != bp_get_root_blog_id() ) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) )273 switch_to_blog( bp_get_root_blog_id() );274 275 268 if ( !current_user_can( 'activate_plugins' ) ) 276 269 return false; … … 344 337 </div> 345 338 346 <?php 347 348 restore_current_blog(); 339 <?php 349 340 } 350 341 … … 372 363 373 364 function step_pages() { 374 global $bp, $wpdb; 375 376 // Make sure that page info is pulled from bp_get_root_blog_id() (except when in 377 // multisite mode) 378 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != bp_get_root_blog_id() ) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) ) 379 switch_to_blog( bp_get_root_blog_id() ); 365 global $bp; 380 366 381 367 if ( !current_user_can( 'activate_plugins' ) ) … … 541 527 </div> 542 528 543 <?php 544 545 restore_current_blog(); 529 <?php 546 530 } 547 531 -
tags/1.5/bp-core/bp-core-catchuri.php
r5242 r5172 251 251 } 252 252 253 // If the displayed user is marked as a spammer, 404 (unless logged-254 // in user is a super admin)255 if ( !empty( $bp->displayed_user->id ) && bp_core_is_user_spammer( $bp->displayed_user->id ) ) {256 if ( is_super_admin() ) {257 bp_core_add_message( __( 'This user has been marked as a spammer. Only site admins can view this profile.', 'buddypress' ), 'error' );258 } else {259 bp_do_404();260 return;261 }262 }263 264 253 // Bump the offset 265 254 if ( isset( $bp_uri[$uri_offset + 2] ) ) { … … 379 368 if ( $bp_no_status_set ) 380 369 return false; 370 371 // If the displayed user was marked as a spammer and the logged-in user is not a super admin, 404. 372 if ( isset( $bp->displayed_user->id ) && bp_core_is_user_spammer( $bp->displayed_user->id ) ) { 373 if ( !$bp->loggedin_user->is_super_admin ) { 374 bp_do_404(); 375 return; 376 377 } else { 378 bp_core_add_message( __( 'This user has been marked as a spammer. Only site admins can view this profile.', 'buddypress' ), 'error' ); 379 } 380 } 381 381 382 382 if ( !isset( $wp_query->queried_object ) && !bp_is_blog_page() ) { -
tags/1.5/bp-core/bp-core-functions.php
r5242 r5172 137 137 if ( $page_ids = bp_core_get_directory_page_ids() ) { 138 138 139 // Always get page data from the root blog, except on multiblog mode, when it comes 140 // from the current blog 141 $posts_table_name = bp_is_multiblog_mode() ? $wpdb->posts : $wpdb->get_blog_prefix( bp_get_root_blog_id() ) . 'posts'; 139 $posts_table_name = bp_is_multiblog_mode() ? $wpdb->get_blog_prefix( bp_get_root_blog_id() ) . 'posts' : $wpdb->posts; 142 140 $page_ids_sql = implode( ',', (array)$page_ids ); 143 141 $page_names = $wpdb->get_results( $wpdb->prepare( "SELECT ID, post_name, post_parent, post_title FROM {$posts_table_name} WHERE ID IN ({$page_ids_sql}) AND post_status = 'publish' " ) ); … … 841 839 $slug = ''; 842 840 $var = '/?s='; 843 844 // If posts aren't displayed on the front page, find the post page's slug.845 if ( 'page' == get_option( 'show_on_front' ) ) {846 $page = get_post( get_option( 'page_for_posts' ) );847 848 if ( !is_wp_error( $page ) && !empty( $page->post_name ) ) {849 $slug = $page->post_name;850 $var = '?s=';851 }852 }853 841 break; 854 842 … … 984 972 'bp-deactivated-components' => serialize( array( ) ), 985 973 'bp-blogs-first-install' => '0', 986 'bp-disable-blog forum-comments' => '0',974 'bp-disable-blog-forum-comments' => '0', 987 975 'bp-xprofile-base-group-name' => 'Base', 988 976 'bp-xprofile-fullname-field-name' => 'Name', … … 991 979 'bp-disable-account-deletion' => '0', 992 980 'bp-disable-blogforum-comments' => '0', 993 'bb-config-location' => ABSPATH . 'bb-config.php',981 'bb-config-location' => ABSPATH, 994 982 'hide-loggedout-adminbar' => '0', 995 983 -
tags/1.5/bp-core/bp-core-widgets.php
r5242 r5172 23 23 parent::__construct( false, $name = __( 'Members', 'buddypress' ), $widget_ops ); 24 24 25 if ( is_active_widget( false, false, $this->id_base ) && !is_admin() && !is_network_admin()) {25 if ( is_active_widget( false, false, $this->id_base ) ) { 26 26 if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) 27 27 wp_enqueue_script( 'bp_core_widget_members-js', BP_PLUGIN_URL . '/bp-core/js/widget-members.dev.js', array( 'jquery' ), '20110723' ); -
tags/1.5/bp-core/deprecated/1.5.php
r5242 r5172 49 49 _deprecated_function( __FUNCTION__, '1.5', 'is_main_site()' ); 50 50 return is_main_site( $blog_id ); 51 }52 53 /**54 * WPMU version of is_super_admin()55 *56 * @deprecated 1.557 * @deprecated Use is_super_admin()58 * @param int $user_id Optional. Defaults to logged-in user59 * @return bool True if is super admin60 */61 if ( !function_exists( 'is_site_admin' ) ) {62 function is_site_admin( $user_id = false ) {63 _deprecated_function( __FUNCTION__, '1.5', 'is_super_admin()' );64 return is_super_admin( $user_id );65 }66 51 } 67 52 -
tags/1.5/bp-forums/bp-forums-template.php
r5242 r5172 1324 1324 1325 1325 if ( bp_is_groups_component() ) { 1326 $permalink = trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/' . bp_current_item() . ' /forum' );1326 $permalink = trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/' . bp_current_item() . 'forum' ); 1327 1327 } else { 1328 1328 if ( empty( $forum_id ) ) { -
tags/1.5/bp-groups/bp-groups-actions.php
r5242 r5172 244 244 // User wants to leave any group 245 245 if ( groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) { 246 247 // Stop sole admins from abandoning their group 248 $group_admins = groups_get_group_admins( $bp->groups->current_group->id ); 249 if ( 1 == count( $group_admins ) && $group_admins[0]->user_id == $bp->loggedin_user->id ) 250 bp_core_add_message( __( 'This group must have at least one admin', 'buddypress' ), 'error' ); 251 252 elseif ( !groups_leave_group( $bp->groups->current_group->id ) ) 246 if ( !groups_leave_group( $bp->groups->current_group->id ) ) { 253 247 bp_core_add_message( __( 'There was an error leaving the group.', 'buddypress' ), 'error' ); 254 else248 } else { 255 249 bp_core_add_message( __( 'You successfully left the group.', 'buddypress' ) ); 256 250 } 257 251 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) ); 258 252 } -
tags/1.5/bp-groups/bp-groups-forums.php
r5242 r5172 24 24 } 25 25 26 /**27 * Updates group forum metadata (title, description, slug) when the group's details are edited28 *29 * @package BuddyPress30 * @subpackage Groups31 *32 * @param int $group_id Group id, passed from groups_details_updated33 */34 26 function groups_update_group_forum( $group_id ) { 35 27 36 28 $group = new BP_Groups_Group( $group_id ); 37 29 38 /** 39 * Bail in the following three situations: 40 * 1. Forums are not enabled for this group 41 * 2. The BP Forum component is not enabled 42 * 3. The built-in bbPress forums are not correctly installed (usually means they've been 43 * uninstalled) 44 */ 45 if ( empty( $group->enable_forum ) || !bp_is_active( 'forums' ) || ( function_exists( 'bp_forums_is_installed_correctly' ) && !bp_forums_is_installed_correctly() ) ) 30 if ( empty( $group->enable_forum ) || !bp_is_active( 'forums' ) ) 46 31 return false; 47 32 -
tags/1.5/bp-groups/bp-groups-loader.php
r5242 r5172 216 216 217 217 // Auto join group when non group member performs group activity 218 $this->auto_join = defined( 'BP_DISABLE_AUTO_GROUP_JOIN' ) && BP_DISABLE_AUTO_GROUP_JOIN ? false : true;218 $this->auto_join = defined( 'BP_DISABLE_AUTO_GROUP_JOIN' ); 219 219 } 220 220 -
tags/1.5/bp-groups/bp-groups-notifications.php
r5242 r5172 42 42 } 43 43 44 do_action( 'bp_groups_sent_updated_email', $user_ids, $subject, '', $group_id );44 do_action( 'bp_groups_sent_updated_email', $user_ids, $subject, $message, $group_id ); 45 45 } 46 46 -
tags/1.5/bp-groups/bp-groups-screens.php
r5242 r5172 141 141 142 142 // Auto join this user if they are not yet a member of this group 143 if ( bp_groups_auto_join()&& !is_super_admin() && 'public' == $bp->groups->current_group->status && !groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) )143 if ( $bp->groups->auto_join && !is_super_admin() && 'public' == $bp->groups->current_group->status && !groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) 144 144 groups_join_group( $bp->groups->current_group->id, $bp->loggedin_user->id ); 145 145 … … 338 338 $error_message = __( "You have been banned from this group.", 'buddypress' ); 339 339 340 } elseif ( bp_groups_auto_join()&& !is_super_admin() && 'public' == $bp->groups->current_group->status && !groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) {340 } elseif ( $bp->groups->auto_join && !is_super_admin() && 'public' == $bp->groups->current_group->status && !groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) { 341 341 // Auto join this user if they are not yet a member of this group 342 342 groups_join_group( $bp->groups->current_group->id, $bp->loggedin_user->id ); … … 641 641 return false; 642 642 643 // Stop sole admins from abandoning their group644 $group_admins = groups_get_group_admins( $bp->groups->current_group->id );645 if ( 1 == count( $group_admins ) && $group_admins[0]->user_id == $user_id )646 bp_core_add_message( __( 'This group must have at least one admin', 'buddypress' ), 'error' );647 648 643 // Demote a user. 649 elseif ( !groups_demote_member( $user_id, $bp->groups->current_group->id ) )644 if ( !groups_demote_member( $user_id, $bp->groups->current_group->id ) ) 650 645 bp_core_add_message( __( 'There was an error when demoting that user, please try again', 'buddypress' ), 'error' ); 651 646 else -
tags/1.5/bp-groups/bp-groups-template.php
r5242 r5172 274 274 extract( $r ); 275 275 276 if ( empty( $search_terms ) ) {276 if ( is_null( $search_terms ) ) { 277 277 if ( isset( $_REQUEST['group-filter-box'] ) && !empty( $_REQUEST['group-filter-box'] ) ) 278 278 $search_terms = $_REQUEST['group-filter-box']; … … 2185 2185 } 2186 2186 2187 return apply_filters( 'bp_get_group_creation_previous_link', trailingslashit( bp_get_root_domain() ) . bp_get_groups_ root_slug() . '/create/step/' . array_pop( $previous_steps ) );2187 return apply_filters( 'bp_get_group_creation_previous_link', trailingslashit( bp_get_root_domain() ) . bp_get_groups_slug() . '/create/step/' . array_pop( $previous_steps ) ); 2188 2188 } 2189 2189 -
tags/1.5/bp-groups/bp-groups-widgets.php
r5242 r5172 20 20 parent::__construct( false, __( 'Groups', 'buddypress' ), $widget_ops ); 21 21 22 if ( is_active_widget( false, false, $this->id_base ) && !is_admin() && !is_network_admin()) {22 if ( is_active_widget( false, false, $this->id_base ) ) { 23 23 if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) 24 24 wp_enqueue_script( 'groups_widget_groups_list-js', BP_PLUGIN_URL . '/bp-groups/js/widget-groups.dev.js', array( 'jquery' ) ); -
tags/1.5/bp-loader.php
r5242 r5172 5 5 * Description: 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. 6 6 * Author: The BuddyPress Community 7 * Version: 1.5 .17 * Version: 1.5 8 8 * Author URI: http://buddypress.org/community/members/ 9 9 * Network: true … … 18 18 // Define the BuddyPress version 19 19 if ( !defined( 'BP_VERSION' ) ) 20 define( 'BP_VERSION', '1.5 .1' );20 define( 'BP_VERSION', '1.5' ); 21 21 22 22 // Define the database version … … 61 61 62 62 // Setup the BuddyPress theme directory 63 register_theme_directory( BP_PLUGIN_DIR . '/bp-themes' );63 register_theme_directory( WP_PLUGIN_DIR . '/buddypress/bp-themes' ); 64 64 65 65 /** Loader ********************************************************************/ … … 80 80 if ( empty( $bp->database_version ) ) { 81 81 $bp->maintenance_mode = 'install'; 82 require( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-update.php' );82 require( WP_PLUGIN_DIR . '/buddypress/bp-core/admin/bp-core-update.php' ); 83 83 84 84 // There is a previous installation 85 85 } else { 86 86 // Load core 87 require( BP_PLUGIN_DIR . '/bp-core/bp-core-loader.php' );87 require( WP_PLUGIN_DIR . '/buddypress/bp-core/bp-core-loader.php' ); 88 88 89 89 // Check if an update is required 90 90 if ( (int)$bp->database_version < (int)constant( 'BP_DB_VERSION' ) || isset( $bp->is_network_activate ) ) { 91 91 $bp->maintenance_mode = 'update'; 92 require( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-update.php' );92 require( WP_PLUGIN_DIR . '/buddypress/bp-core/admin/bp-core-update.php' ); 93 93 } 94 94 } -
tags/1.5/bp-members/bp-members-signup.php
r5242 r5172 24 24 if ( is_user_logged_in() ) { 25 25 if ( bp_is_component_front_page( 'register' ) ) 26 $redirect_to = bp_get_root_domain() . '/' . bp_get_members_root_slug();26 bp_core_redirect( bp_get_root_domain() . '/' . bp_get_members_root_slug() ); 27 27 else 28 $redirect_to = bp_get_root_domain(); 29 30 bp_core_redirect( apply_filters( 'bp_loggedin_register_page_redirect_to', $redirect_to ) ); 28 bp_core_redirect( bp_get_root_domain() ); 31 29 32 30 return; -
tags/1.5/bp-settings/bp-settings-actions.php
r5242 r5172 93 93 94 94 // Add user feedback messages 95 if ( empty( $pass_error ) && empty( $pwd_error ) && ( empty( $email_error ) ))95 if ( empty( $pass_error ) && empty( $pwd_error ) ) 96 96 bp_core_add_message( __( 'Changes saved.', 'buddypress' ), 'success' ); 97 97 -
tags/1.5/bp-themes/bp-default/_inc/css/default.css
r5242 r5172 1090 1090 width: 98%; 1091 1091 } 1092 body.no-js form#whats-new-form textarea {1093 height: 50px;1094 }1095 1092 form#whats-new-form #whats-new-options select { 1096 1093 max-width: 200px; … … 1104 1101 overflow: auto; 1105 1102 height: 0; 1106 }1107 body.no-js #whats-new-options {1108 height: auto;1109 1103 } 1110 1104 #whats-new:focus { -
tags/1.5/bp-themes/bp-default/blogs/index.php
r5242 r5172 33 33 <div class="item-list-tabs" role="navigation"> 34 34 <ul> 35 <li class="selected" id="blogs-all"><a href="<?php bp_root_domain(); ?> /<?php bp_blogs_root_slug() ?>"><?php printf( __( 'All Sites <span>%s</span>', 'buddypress' ), bp_get_total_blog_count() ); ?></a></li>35 <li class="selected" id="blogs-all"><a href="<?php bp_root_domain(); ?>"><?php printf( __( 'All Sites <span>%s</span>', 'buddypress' ), bp_get_total_blog_count() ); ?></a></li> 36 36 37 37 <?php if ( is_user_logged_in() && bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ) : ?> 38 38 39 <li id="blogs-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_blogs_slug() ?>"><?php printf( __( 'My Sites <span>%s</span>', 'buddypress' ), bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>39 <li id="blogs-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_blogs_slug() . '/my-blogs/' ?>"><?php printf( __( 'My Sites <span>%s</span>', 'buddypress' ), bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ); ?></a></li> 40 40 41 41 <?php endif; ?> … … 75 75 76 76 <?php wp_nonce_field( 'directory_blogs', '_wpnonce-blogs-filter' ); ?> 77 77 78 78 <?php do_action( 'bp_after_directory_blogs_content' ); ?> 79 79 -
tags/1.5/bp-themes/bp-default/forums/single/topic.php
r5242 r5172 34 34 <div class="item-list-tabs no-ajax" id="subnav" role="navigation"> 35 35 <ul> 36 <?php if ( is_user_logged_in() ) : ?> 37 <li> 38 <a href="#post-topic-reply" class="show-hide-new"><?php _e( 'New Reply', 'buddypress' ) ?></a> 39 </li> 40 <?php endif; ?> 36 <li> 37 <a href="#post-topic-reply" class="show-hide-new"><?php _e( 'New Reply', 'buddypress' ) ?></a> 38 </li> 41 39 42 40 <?php if ( bp_forums_has_directory() ) : ?> -
tags/1.5/bp-themes/bp-default/functions.php
r5242 r5172 140 140 function bp_dtheme_enqueue_scripts() { 141 141 // Bump this when changes are made to bust cache 142 $version = '2011 1013';142 $version = '20110921'; 143 143 144 144 // Enqueue the global JS - Ajax will not work without it … … 180 180 function bp_dtheme_enqueue_styles() { 181 181 // Bump this when changes are made to bust cache 182 $version = '2011 1013';182 $version = '20110921'; 183 183 184 184 // Register our main stylesheet … … 732 732 } 733 733 endif; 734 735 /**736 * Adds the no-js class to the body tag.737 *738 * This function ensures that the <body> element will have the 'no-js' class by default. If you're739 * using JavaScript for some visual functionality in your theme, and you want to provide noscript740 * support, apply those styles to body.no-js.741 *742 * The no-js class is removed by the JavaScript created in bp_dtheme_remove_nojs_body_class().743 *744 * @package BuddyPress745 * @since 1.5.1746 * @see bp_dtheme_remove_nojs_body_class()747 */748 function bp_dtheme_add_nojs_body_class( $classes ) {749 $classes[] = 'no-js';750 return array_unique( $classes );751 }752 add_filter( 'bp_get_the_body_class', 'bp_dtheme_add_nojs_body_class' );753 754 /**755 * Dynamically removes the no-js class from the <body> element.756 *757 * By default, the no-js class is added to the body (see bp_dtheme_add_no_js_body_class()). The758 * JavaScript in this function is loaded into the <body> element immediately after the <body> tag759 * (note that it's hooked to bp_before_header), and uses JavaScript to switch the 'no-js' body class760 * to 'js'. If your theme has styles that should only apply for JavaScript-enabled users, apply them761 * to body.js.762 *763 * This technique is borrowed from WordPress, wp-admin/admin-header.php.764 *765 * @package BuddyPress766 * @since 1.5.1767 * @see bp_dtheme_add_nojs_body_class()768 */769 function bp_dtheme_remove_nojs_body_class() {770 ?><script type="text/javascript">//<![CDATA[771 (function(){var c=document.body.className;c=c.replace(/no-js/,'js');document.body.className=c;})();772 //]]></script>773 <?php774 }775 add_action( 'bp_before_header', 'bp_dtheme_remove_nojs_body_class' );776 777 734 ?> -
tags/1.5/bp-themes/bp-default/groups/single/forum.php
r5242 r5172 14 14 <ul> 15 15 16 <?php if ( is_user_logged_in() ) : ?> 17 18 <li> 19 <a href="#post-new" class="show-hide-new"><?php _e( 'New Topic', 'buddypress' ) ?></a> 20 </li> 21 22 <?php endif; ?> 16 <li> 17 <a href="#post-new" class="show-hide-new"><?php _e( 'New Topic', 'buddypress' ) ?></a> 18 </li> 23 19 24 20 <?php if ( bp_forums_has_directory() ) : ?> -
tags/1.5/bp-themes/bp-default/groups/single/forum/topic.php
r5242 r5172 7 7 <div class="item-list-tabs no-ajax" id="subnav" role="navigation"> 8 8 <ul> 9 <?php if ( is_user_logged_in() ) : ?> 10 11 <li> 12 <a href="<?php bp_forum_topic_new_reply_link() ?>" class="new-reply-link"><?php _e( 'New Reply', 'buddypress' ) ?></a> 13 </li> 14 15 <?php endif; ?> 9 <li> 10 <a href="<?php bp_forum_topic_new_reply_link() ?>" class="new-reply-link"><?php _e( 'New Reply', 'buddypress' ) ?></a> 11 </li> 16 12 17 13 <?php if ( bp_forums_has_directory() ) : ?> -
tags/1.5/bp-themes/bp-default/rtl.css
r5242 r5172 3 3 * Theme URI: http://buddypress.org/extend/themes/ 4 4 * Description: Clean and stylish, BuddyPress Default lets you build a social network straight out of the box. Make it yours with a custom menu, header image, and background. Along with five widgetized areas (one in the sidebar, four in the footer), BP-Default supports featured images (as custom header images on posts and pages) and is furnished with an optional one-column page template that removes the sidebar, and a stylesheet for the admin Visual Editor. 5 * Version: 1.5 .15 * Version: 1.5 6 6 * Author: the BuddyPress team 7 7 * Author URI: http://buddypress.org -
tags/1.5/bp-themes/bp-default/style.css
r5242 r5172 3 3 * Theme URI: http://buddypress.org/extend/themes/ 4 4 * Description: Clean and stylish, BuddyPress Default lets you build a social network straight out of the box. Make it yours with a custom menu, header image, and background. Along with five widgetized areas (one in the sidebar, four in the footer), BP-Default supports featured images (as custom header images on posts and pages) and is furnished with an optional one-column page template that removes the sidebar, and a stylesheet for the admin Visual Editor. 5 * Version: 1.5 .15 * Version: 1.5 6 6 * Author: the BuddyPress team 7 7 * Author URI: http://buddypress.org -
tags/1.5/bp-xprofile/bp-xprofile-classes.php
r5242 r5172 512 512 global $wpdb, $bp; 513 513 514 / / This is done here so we don't have problems with sql injection514 /* This is done here so we don't have problems with sql injection */ 515 515 if ( 'asc' == $this->order_by && !$for_editing ) 516 516 $sort_sql = 'ORDER BY name ASC'; … … 520 520 $sort_sql = 'ORDER BY option_order ASC'; 521 521 522 / / This eliminates a problem with getting all fields when there is no id for the object522 /* This eliminates a problem with getting all fields when there is no id for the object */ 523 523 if ( !$this->id ) 524 524 $parent_id = -1; … … 531 531 return false; 532 532 533 return apply_filters( 'bp_xprofile_field_get_children', $children );533 return $children; 534 534 } 535 535 … … 749 749 </div> 750 750 751 <?php do_action( 'xprofile_field_additional_options', &$this ) ?>752 753 751 <?php $this->render_admin_form_children(); ?> 754 752 <?php } else { ?> -
tags/1.5/bp-xprofile/bp-xprofile-template.php
r5242 r5172 579 579 } else { 580 580 $day = mysql2date( 'j', $date ); 581 $month = mysql2date( 'F', $date , false ); // Not localized, so that selected() works below581 $month = mysql2date( 'F', $date ); 582 582 $year = mysql2date( 'Y', $date ); 583 583 } … … 612 612 $eng_months = array( 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ); 613 613 614 $months = array( 615 __( 'January', 'buddypress' ), 616 __( 'February', 'buddypress' ), 617 __( 'March', 'buddypress' ), 618 __( 'April', 'buddypress' ), 619 __( 'May', 'buddypress' ), 620 __( 'June', 'buddypress' ), 621 __( 'July', 'buddypress' ), 622 __( 'August', 'buddypress' ), 623 __( 'September', 'buddypress' ), 624 __( 'October', 'buddypress' ), 625 __( 'November', 'buddypress' ), 626 __( 'December', 'buddypress' ) 627 ); 614 $months = array( __( 'January', 'buddypress' ), __( 'February', 'buddypress' ), __( 'March', 'buddypress' ), 615 __( 'April', 'buddypress' ), __( 'May', 'buddypress' ), __( 'June', 'buddypress' ), 616 __( 'July', 'buddypress' ), __( 'August', 'buddypress' ), __( 'September', 'buddypress' ), 617 __( 'October', 'buddypress' ), __( 'November', 'buddypress' ), __( 'December', 'buddypress' ) 618 ); 628 619 629 620 $html .= '<option value=""' . selected( $month, '', false ) . '>------</option>'; -
tags/1.5/readme.txt
r5242 r5172 4 4 Requires at least: 3.2 5 5 Tested up to: 3.2.1 6 Stable tag: 1.5 .16 Stable tag: 1.5 7 7 8 8 Social networking in a box. Build a social network for your company, school, sports team or niche community. … … 24 24 <h4>Plugins: Adding So Much More</h4> 25 25 26 BuddyPress boasts an ever growing array of new features developed by an awesome plugin development community. There are more than 330 BuddyPress plugins available, and the list is growing every day. Check out our list of <a href="http://buddypress.org/extend/recommended-plugins/">popular and recommended plugins</a>; for a full list of plugins, please visit the <a href="http://buddypress.org/extend/plugins/">BuddyPress.org plugins page</a>. You can install any of these plugins automatically, using the plugin installer on your WordPress Dashboard.26 BuddyPress boasts an ever growing array of new features developed by an awesome plugin development community. There are more than 330 BuddyPress plugins available, and the list is growing every day. For a full list of plugins, please visit the <a href="http://buddypress.org/extend/plugins/">BuddyPress.org plugins page</a>. You can install any of these plugins automatically, using the plugin installer on your WordPress Dashboard. 27 27 28 28 <h4>More Information</h4> … … 85 85 == Upgrade Notice == 86 86 87 = 1.5.1 =88 Fixes over 25 issues89 90 87 = 1.5 = 91 88 See: http://codex.buddypress.org/releases/version-1-5/
Note: See TracChangeset
for help on using the changeset viewer.