Ticket #5174: 5174.diff
File 5174.diff, 11.2 KB (added by , 11 years ago) |
---|
-
bp-themes/bp-default/groups/single/group-header.php
30 30 </div><!-- #item-actions --> 31 31 32 32 <div id="item-header-avatar"> 33 <a href="<?php bp_group_permalink(); ?>" title="<?php bp_group_ name(); ?>">33 <a href="<?php bp_group_permalink(); ?>" title="<?php bp_group_title(); ?>"> 34 34 35 35 <?php bp_group_avatar(); ?> 36 36 … … 38 38 </div><!-- #item-header-avatar --> 39 39 40 40 <div id="item-header-content"> 41 <h2><a href="<?php bp_group_permalink(); ?>" title="<?php bp_group_ name(); ?>"><?php bp_group_name(); ?></a></h2>41 <h2><a href="<?php bp_group_permalink(); ?>" title="<?php bp_group_title(); ?>"><?php bp_group_name(); ?></a></h2> 42 42 <span class="highlight"><?php bp_group_type(); ?></span> <span class="activity"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span> 43 43 44 44 <?php do_action( 'bp_before_group_header_meta' ); ?> -
bp-themes/bp-default/groups/single/admin.php
14 14 <?php do_action( 'bp_before_group_details_admin' ); ?> 15 15 16 16 <label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label> 17 <input type="text" name="group-name" id="group-name" value="<?php bp_group_ name(); ?>" aria-required="true" />17 <input type="text" name="group-name" id="group-name" value="<?php bp_group_title(); ?>" aria-required="true" /> 18 18 19 19 <label for="group-desc"><?php _e( 'Group Description (required)', 'buddypress' ); ?></label> 20 20 <textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_group_description_editable(); ?></textarea> -
bp-themes/bp-default/activity/post-form.php
47 47 <?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100&populate_extras=0' ) ) : 48 48 while ( bp_groups() ) : bp_the_group(); ?> 49 49 50 <option value="<?php bp_group_id(); ?>"><?php bp_group_ name(); ?></option>50 <option value="<?php bp_group_id(); ?>"><?php bp_group_title(); ?></option> 51 51 52 52 <?php endwhile; 53 53 endif; ?> -
bp-themes/bp-default/forums/index.php
119 119 120 120 <?php if ( bp_group_is_forum_enabled() && ( bp_current_user_can( 'bp_moderate' ) || 'public' == bp_get_group_status() || bp_group_is_member() ) ) : ?> 121 121 122 <option value="<?php bp_group_id(); ?>"><?php bp_group_ name(); ?></option>122 <option value="<?php bp_group_id(); ?>"><?php bp_group_title(); ?></option> 123 123 124 124 <?php endif; ?> 125 125 -
bp-core/bp-core-avatars.php
211 211 break; 212 212 213 213 case 'group' : 214 $item_name = bp_get_group_ name( groups_get_group( array( 'group_id' => $item_id ) ) );214 $item_name = bp_get_group_title( groups_get_group( array( 'group_id' => $item_id ) ) ); 215 215 break; 216 216 217 217 case 'user' : -
bp-templates/bp-legacy/buddypress/groups/single/group-header.php
30 30 </div><!-- #item-actions --> 31 31 32 32 <div id="item-header-avatar"> 33 <a href="<?php bp_group_permalink(); ?>" title="<?php bp_group_ name(); ?>">33 <a href="<?php bp_group_permalink(); ?>" title="<?php bp_group_title(); ?>"> 34 34 35 35 <?php bp_group_avatar(); ?> 36 36 -
bp-templates/bp-legacy/buddypress/groups/single/admin.php
14 14 <?php do_action( 'bp_before_group_details_admin' ); ?> 15 15 16 16 <label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label> 17 <input type="text" name="group-name" id="group-name" value="<?php bp_group_ name(); ?>" aria-required="true" />17 <input type="text" name="group-name" id="group-name" value="<?php bp_group_title(); ?>" aria-required="true" /> 18 18 19 19 <label for="group-desc"><?php _e( 'Group Description (required)', 'buddypress' ); ?></label> 20 20 <textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_group_description_editable(); ?></textarea> -
bp-templates/bp-legacy/buddypress/forums/index.php
101 101 102 102 <?php if ( bp_group_is_forum_enabled() && ( bp_current_user_can( 'bp_moderate' ) || 'public' == bp_get_group_status() || bp_group_is_member() ) ) : ?> 103 103 104 <option value="<?php bp_group_id(); ?>"><?php bp_group_ name(); ?></option>104 <option value="<?php bp_group_id(); ?>"><?php bp_group_title(); ?></option> 105 105 106 106 <?php endif; ?> 107 107 -
bp-templates/bp-legacy/buddypress/activity/post-form.php
47 47 <?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100&populate_extras=0' ) ) : 48 48 while ( bp_groups() ) : bp_the_group(); ?> 49 49 50 <option value="<?php bp_group_id(); ?>"><?php bp_group_ name(); ?></option>50 <option value="<?php bp_group_id(); ?>"><?php bp_group_title(); ?></option> 51 51 52 52 <?php endwhile; 53 53 endif; ?> -
bp-groups/bp-groups-admin.php
470 470 471 471 // Get the group from the database 472 472 $group = groups_get_group( 'group_id=' . $_GET['gid'] ); 473 $group_name = isset( $group->name ) ? apply_filters( 'bp_get_group_name', $group->name) : '';473 $group_name = isset( $group->name ) ? bp_get_group_title( $group ) : ''; 474 474 475 475 // Construct URL for form 476 476 $form_url = remove_query_arg( array( 'action', 'deleted', 'no_admins', 'error', 'error_new', 'success_new', 'error_modified', 'success_modified' ), $_SERVER['REQUEST_URI'] ); -
bp-groups/bp-groups-widgets.php
71 71 <?php while ( bp_groups() ) : bp_the_group(); ?> 72 72 <li> 73 73 <div class="item-avatar"> 74 <a href="<?php bp_group_permalink() ?>" title="<?php bp_group_ name() ?>"><?php bp_group_avatar_thumb() ?></a>74 <a href="<?php bp_group_permalink() ?>" title="<?php bp_group_title() ?>"><?php bp_group_avatar_thumb() ?></a> 75 75 </div> 76 76 77 77 <div class="item"> 78 <div class="item-title"><a href="<?php bp_group_permalink() ?>" title="<?php bp_group_ name() ?>"><?php bp_group_name() ?></a></div>78 <div class="item-title"><a href="<?php bp_group_permalink() ?>" title="<?php bp_group_title() ?>"><?php bp_group_name() ?></a></div> 79 79 <div class="item-meta"> 80 80 <span class="activity"> 81 81 <?php … … 178 178 </div> 179 179 180 180 <div class="item"> 181 <div class="item-title"><a href="<?php bp_group_permalink() ?>" title="<?php bp_group_ name() ?>"><?php bp_group_name() ?></a></div>181 <div class="item-title"><a href="<?php bp_group_permalink() ?>" title="<?php bp_group_title() ?>"><?php bp_group_name() ?></a></div> 182 182 <div class="item-meta"> 183 183 <span class="activity"> 184 184 <?php -
bp-groups/bp-groups-template.php
467 467 return apply_filters( 'bp_get_group_name', $group->name ); 468 468 } 469 469 470 /** 471 * Echoes a non filterable group name 472 * 473 * @param BP_Groups_Group $group the group object 474 * @uses bp_get_group_title() to get the non filterable group name 475 */ 476 function bp_group_title( $group = false ) { 477 echo bp_get_group_title( $group ); 478 } 479 480 /** 481 * Returns a non filterable group name 482 * 483 * @param BP_Groups_Group $group the group object 484 * @uses wptexturize() 485 * @uses convert_chars() 486 * @uses wp_filter_kses() 487 * @uses stripslashes() 488 * @return string the non filterable group name 489 */ 490 function bp_get_group_title( $group = false ) { 491 global $groups_template; 492 493 if ( empty( $group ) ) 494 $group =& $groups_template->group; 495 496 $group_title = wptexturize( $group->name ); 497 $group_title = convert_chars( $group_title ); 498 $group_title = wp_filter_kses( $group_title ); 499 $group_title = stripslashes( $group_title ); 500 501 return $group_title; 502 } 503 470 504 function bp_group_type( $group = false ) { 471 505 echo bp_get_group_type( $group ); 472 506 } … … 2992 3026 if ( !bp_is_active( 'groups' ) || !bp_is_active( 'activity' ) || !bp_is_group() ) 2993 3027 return; ?> 2994 3028 2995 <link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ) ?> | <?php bp_current_group_ name() ?> | <?php _e( 'Group Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_group_activity_feed_link() ?>" />3029 <link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ) ?> | <?php bp_current_group_title() ?> | <?php _e( 'Group Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_group_activity_feed_link() ?>" /> 2996 3030 2997 3031 <?php 2998 3032 } … … 3083 3117 return apply_filters( 'bp_get_current_group_name', $name ); 3084 3118 } 3085 3119 3120 /** 3121 * Echoes the output of bp_get_current_group_title() 3122 * 3123 * @package BuddyPress 3124 */ 3125 function bp_current_group_title() { 3126 echo bp_get_current_group_title(); 3127 } 3128 /** 3129 * Returns a non filterable name of the current group 3130 * 3131 * @package BuddyPress 3132 * 3133 * @uses wptexturize() 3134 * @uses convert_chars() 3135 * @uses wp_filter_kses() 3136 * @uses stripslashes() 3137 * @return string The name of the current group, if there is one 3138 */ 3139 function bp_get_current_group_title() { 3140 global $bp; 3141 3142 $group_title = wptexturize( $bp->groups->current_group->name ); 3143 $group_title = convert_chars( $group_title ); 3144 $group_title = wp_filter_kses( $group_title ); 3145 $group_title = stripslashes( $group_title ); 3146 3147 return $group_title; 3148 } 3149 3086 3150 function bp_groups_action_link( $action = '', $query_args = '', $nonce = false ) { 3087 3151 echo bp_get_groups_action_link( $action, $query_args, $nonce ); 3088 3152 }