Changes from tags/1.5 at r5172 to tags/1.5.1 at r5242
- Location:
- tags/1.5.1
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/1.5.1/bp-activity/bp-activity-actions.php
r5172 r5242 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.1/bp-activity/bp-activity-notifications.php
r5172 r5242 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 );214 $message = apply_filters( 'bp_activity_new_comment_notification_comment_author_message', $message, $poster_name, $content, $settings_link, $thread_link ); 215 215 216 216 wp_mail( $to, $subject, $message ); -
tags/1.5.1/bp-activity/bp-activity-template.php
r5172 r5242 2440 2440 */ 2441 2441 function bp_get_sitewide_activity_feed_link() { 2442 return apply_filters( 'bp_get_sitewide_activity_feed_link', home_url( bp_get_activity_root_slug() . '/feed/' ));2442 return apply_filters( 'bp_get_sitewide_activity_feed_link', bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/feed/' ); 2443 2443 } 2444 2444 -
tags/1.5.1/bp-core/admin/bp-core-update.php
r5172 r5242 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 in 271 // 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 268 275 if ( !current_user_can( 'activate_plugins' ) ) 269 276 return false; … … 337 344 </div> 338 345 339 <?php 346 <?php 347 348 restore_current_blog(); 340 349 } 341 350 … … 363 372 364 373 function step_pages() { 365 global $bp; 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() ); 366 380 367 381 if ( !current_user_can( 'activate_plugins' ) ) … … 527 541 </div> 528 542 529 <?php 543 <?php 544 545 restore_current_blog(); 530 546 } 531 547 -
tags/1.5.1/bp-core/bp-core-catchuri.php
r5172 r5242 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 253 264 // Bump the offset 254 265 if ( isset( $bp_uri[$uri_offset + 2] ) ) { … … 368 379 if ( $bp_no_status_set ) 369 380 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.1/bp-core/bp-core-functions.php
r5172 r5242 137 137 if ( $page_ids = bp_core_get_directory_page_ids() ) { 138 138 139 $posts_table_name = bp_is_multiblog_mode() ? $wpdb->get_blog_prefix( bp_get_root_blog_id() ) . 'posts' : $wpdb->posts; 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'; 140 142 $page_ids_sql = implode( ',', (array)$page_ids ); 141 143 $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' " ) ); … … 839 841 $slug = ''; 840 842 $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 } 841 853 break; 842 854 … … 972 984 'bp-deactivated-components' => serialize( array( ) ), 973 985 'bp-blogs-first-install' => '0', 974 'bp-disable-blog -forum-comments' => '0',986 'bp-disable-blogforum-comments' => '0', 975 987 'bp-xprofile-base-group-name' => 'Base', 976 988 'bp-xprofile-fullname-field-name' => 'Name', … … 979 991 'bp-disable-account-deletion' => '0', 980 992 'bp-disable-blogforum-comments' => '0', 981 'bb-config-location' => ABSPATH ,993 'bb-config-location' => ABSPATH . 'bb-config.php', 982 994 'hide-loggedout-adminbar' => '0', 983 995 -
tags/1.5.1/bp-core/bp-core-widgets.php
r5172 r5242 23 23 parent::__construct( false, $name = __( 'Members', 'buddypress' ), $widget_ops ); 24 24 25 if ( is_active_widget( false, false, $this->id_base ) ) {25 if ( is_active_widget( false, false, $this->id_base ) && !is_admin() && !is_network_admin() ) { 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.1/bp-core/deprecated/1.5.php
r5172 r5242 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.5 57 * @deprecated Use is_super_admin() 58 * @param int $user_id Optional. Defaults to logged-in user 59 * @return bool True if is super admin 60 */ 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 } 51 66 } 52 67 -
tags/1.5.1/bp-forums/bp-forums-template.php
r5172 r5242 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.1/bp-groups/bp-groups-actions.php
r5172 r5242 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 if ( !groups_leave_group( $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 ) ) 247 253 bp_core_add_message( __( 'There was an error leaving the group.', 'buddypress' ), 'error' ); 248 } else {254 else 249 255 bp_core_add_message( __( 'You successfully left the group.', 'buddypress' ) ); 250 } 256 251 257 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) ); 252 258 } -
tags/1.5.1/bp-groups/bp-groups-forums.php
r5172 r5242 24 24 } 25 25 26 /** 27 * Updates group forum metadata (title, description, slug) when the group's details are edited 28 * 29 * @package BuddyPress 30 * @subpackage Groups 31 * 32 * @param int $group_id Group id, passed from groups_details_updated 33 */ 26 34 function groups_update_group_forum( $group_id ) { 27 35 28 36 $group = new BP_Groups_Group( $group_id ); 29 37 30 if ( empty( $group->enable_forum ) || !bp_is_active( 'forums' ) ) 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() ) ) 31 46 return false; 32 47 -
tags/1.5.1/bp-groups/bp-groups-loader.php
r5172 r5242 216 216 217 217 // Auto join group when non group member performs group activity 218 $this->auto_join = defined( 'BP_DISABLE_AUTO_GROUP_JOIN' ) ;218 $this->auto_join = defined( 'BP_DISABLE_AUTO_GROUP_JOIN' ) && BP_DISABLE_AUTO_GROUP_JOIN ? false : true; 219 219 } 220 220 -
tags/1.5.1/bp-groups/bp-groups-notifications.php
r5172 r5242 42 42 } 43 43 44 do_action( 'bp_groups_sent_updated_email', $user_ids, $subject, $message, $group_id );44 do_action( 'bp_groups_sent_updated_email', $user_ids, $subject, '', $group_id ); 45 45 } 46 46 -
tags/1.5.1/bp-groups/bp-groups-screens.php
r5172 r5242 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 group 644 $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 643 648 // Demote a user. 644 if ( !groups_demote_member( $user_id, $bp->groups->current_group->id ) )649 elseif ( !groups_demote_member( $user_id, $bp->groups->current_group->id ) ) 645 650 bp_core_add_message( __( 'There was an error when demoting that user, please try again', 'buddypress' ), 'error' ); 646 651 else -
tags/1.5.1/bp-groups/bp-groups-template.php
r5172 r5242 274 274 extract( $r ); 275 275 276 if ( is_null( $search_terms ) ) {276 if ( empty( $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_ 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_root_slug() . '/create/step/' . array_pop( $previous_steps ) ); 2188 2188 } 2189 2189 -
tags/1.5.1/bp-groups/bp-groups-widgets.php
r5172 r5242 20 20 parent::__construct( false, __( 'Groups', 'buddypress' ), $widget_ops ); 21 21 22 if ( is_active_widget( false, false, $this->id_base ) ) {22 if ( is_active_widget( false, false, $this->id_base ) && !is_admin() && !is_network_admin() ) { 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.1/bp-loader.php
r5172 r5242 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 7 * Version: 1.5.1 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 ' );20 define( 'BP_VERSION', '1.5.1' ); 21 21 22 22 // Define the database version … … 61 61 62 62 // Setup the BuddyPress theme directory 63 register_theme_directory( WP_PLUGIN_DIR . '/buddypress/bp-themes' );63 register_theme_directory( BP_PLUGIN_DIR . '/bp-themes' ); 64 64 65 65 /** Loader ********************************************************************/ … … 80 80 if ( empty( $bp->database_version ) ) { 81 81 $bp->maintenance_mode = 'install'; 82 require( WP_PLUGIN_DIR . '/buddypress/bp-core/admin/bp-core-update.php' );82 require( BP_PLUGIN_DIR . '/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( WP_PLUGIN_DIR . '/buddypress/bp-core/bp-core-loader.php' );87 require( BP_PLUGIN_DIR . '/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( WP_PLUGIN_DIR . '/buddypress/bp-core/admin/bp-core-update.php' );92 require( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-update.php' ); 93 93 } 94 94 } -
tags/1.5.1/bp-members/bp-members-signup.php
r5172 r5242 24 24 if ( is_user_logged_in() ) { 25 25 if ( bp_is_component_front_page( 'register' ) ) 26 bp_core_redirect( bp_get_root_domain() . '/' . bp_get_members_root_slug());26 $redirect_to = bp_get_root_domain() . '/' . bp_get_members_root_slug(); 27 27 else 28 bp_core_redirect( bp_get_root_domain() ); 28 $redirect_to = bp_get_root_domain(); 29 30 bp_core_redirect( apply_filters( 'bp_loggedin_register_page_redirect_to', $redirect_to ) ); 29 31 30 32 return; -
tags/1.5.1/bp-settings/bp-settings-actions.php
r5172 r5242 93 93 94 94 // Add user feedback messages 95 if ( empty( $pass_error ) && empty( $pwd_error ) )95 if ( empty( $pass_error ) && empty( $pwd_error ) && ( empty( $email_error ) ) ) 96 96 bp_core_add_message( __( 'Changes saved.', 'buddypress' ), 'success' ); 97 97 -
tags/1.5.1/bp-themes/bp-default/_inc/css/default.css
r5172 r5242 1090 1090 width: 98%; 1091 1091 } 1092 body.no-js form#whats-new-form textarea { 1093 height: 50px; 1094 } 1092 1095 form#whats-new-form #whats-new-options select { 1093 1096 max-width: 200px; … … 1101 1104 overflow: auto; 1102 1105 height: 0; 1106 } 1107 body.no-js #whats-new-options { 1108 height: auto; 1103 1109 } 1104 1110 #whats-new:focus { -
tags/1.5.1/bp-themes/bp-default/blogs/index.php
r5172 r5242 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 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 bp_blogs_root_slug() ?>"><?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() . '/my-blogs/'?>"><?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() ?>"><?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.1/bp-themes/bp-default/forums/single/topic.php
r5172 r5242 34 34 <div class="item-list-tabs no-ajax" id="subnav" role="navigation"> 35 35 <ul> 36 <li> 37 <a href="#post-topic-reply" class="show-hide-new"><?php _e( 'New Reply', 'buddypress' ) ?></a> 38 </li> 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; ?> 39 41 40 42 <?php if ( bp_forums_has_directory() ) : ?> -
tags/1.5.1/bp-themes/bp-default/functions.php
r5172 r5242 140 140 function bp_dtheme_enqueue_scripts() { 141 141 // Bump this when changes are made to bust cache 142 $version = '2011 0921';142 $version = '20111013'; 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 0921';182 $version = '20111013'; 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're 739 * using JavaScript for some visual functionality in your theme, and you want to provide noscript 740 * 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 BuddyPress 745 * @since 1.5.1 746 * @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()). The 758 * JavaScript in this function is loaded into the <body> element immediately after the <body> tag 759 * (note that it's hooked to bp_before_header), and uses JavaScript to switch the 'no-js' body class 760 * to 'js'. If your theme has styles that should only apply for JavaScript-enabled users, apply them 761 * to body.js. 762 * 763 * This technique is borrowed from WordPress, wp-admin/admin-header.php. 764 * 765 * @package BuddyPress 766 * @since 1.5.1 767 * @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 <?php 774 } 775 add_action( 'bp_before_header', 'bp_dtheme_remove_nojs_body_class' ); 776 734 777 ?> -
tags/1.5.1/bp-themes/bp-default/groups/single/forum.php
r5172 r5242 14 14 <ul> 15 15 16 <li> 17 <a href="#post-new" class="show-hide-new"><?php _e( 'New Topic', 'buddypress' ) ?></a> 18 </li> 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; ?> 19 23 20 24 <?php if ( bp_forums_has_directory() ) : ?> -
tags/1.5.1/bp-themes/bp-default/groups/single/forum/topic.php
r5172 r5242 7 7 <div class="item-list-tabs no-ajax" id="subnav" role="navigation"> 8 8 <ul> 9 <li> 10 <a href="<?php bp_forum_topic_new_reply_link() ?>" class="new-reply-link"><?php _e( 'New Reply', 'buddypress' ) ?></a> 11 </li> 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; ?> 12 16 13 17 <?php if ( bp_forums_has_directory() ) : ?> -
tags/1.5.1/bp-themes/bp-default/rtl.css
r5172 r5242 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 5 * Version: 1.5.1 6 6 * Author: the BuddyPress team 7 7 * Author URI: http://buddypress.org -
tags/1.5.1/bp-themes/bp-default/style.css
r5172 r5242 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 5 * Version: 1.5.1 6 6 * Author: the BuddyPress team 7 7 * Author URI: http://buddypress.org -
tags/1.5.1/bp-xprofile/bp-xprofile-classes.php
r5172 r5242 512 512 global $wpdb, $bp; 513 513 514 / * This is done here so we don't have problems with sql injection */514 // 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 object */522 // 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 $children;533 return apply_filters( 'bp_xprofile_field_get_children', $children ); 534 534 } 535 535 … … 749 749 </div> 750 750 751 <?php do_action( 'xprofile_field_additional_options', &$this ) ?> 752 751 753 <?php $this->render_admin_form_children(); ?> 752 754 <?php } else { ?> -
tags/1.5.1/bp-xprofile/bp-xprofile-template.php
r5172 r5242 579 579 } else { 580 580 $day = mysql2date( 'j', $date ); 581 $month = mysql2date( 'F', $date );581 $month = mysql2date( 'F', $date, false ); // Not localized, so that selected() works below 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( __( '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 ); 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 ); 619 628 620 629 $html .= '<option value=""' . selected( $month, '', false ) . '>------</option>'; -
tags/1.5.1/readme.txt
r5172 r5242 4 4 Requires at least: 3.2 5 5 Tested up to: 3.2.1 6 Stable tag: 1.5 6 Stable tag: 1.5.1 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. 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. 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. 27 27 28 28 <h4>More Information</h4> … … 85 85 == Upgrade Notice == 86 86 87 = 1.5.1 = 88 Fixes over 25 issues 89 87 90 = 1.5 = 88 91 See: http://codex.buddypress.org/releases/version-1-5/
Note: See TracChangeset
for help on using the changeset viewer.