Changeset 10487
- Timestamp:
- 02/01/2016 06:53:30 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-actions.php
r10417 r10487 187 187 188 188 // Check for the redirect query arg, otherwise let WP handle things. 189 189 if ( !empty( $_GET['redirect_to'] ) ) 190 190 bp_core_redirect( esc_url( $_GET['redirect_to'] ) ); 191 191 else … … 256 256 257 257 // Check for the redirect query arg, otherwise let WP handle things. 258 258 if ( !empty( $_GET['redirect_to'] ) ) 259 259 bp_core_redirect( esc_url( $_GET['redirect_to'] ) ); 260 260 else -
trunk/src/bp-activity/bp-activity-admin.php
r10464 r10487 309 309 wp_enqueue_script( 'bp_activity_admin_js', $bp->plugin_url . "bp-activity/admin/js/admin.{$min}js", array( 'jquery', 'wp-ajax-response' ), bp_get_version(), true ); 310 310 wp_localize_script( 'bp_activity_admin_js', 'bp_activity_admin_vars', array( 311 'page'=> get_current_screen()->id312 311 'page' => get_current_screen()->id 312 ) ); 313 313 wp_enqueue_style( 'bp_activity_admin_css', $bp->plugin_url . "bp-activity/admin/css/admin.{$min}css", array(), bp_get_version() ); 314 314 -
trunk/src/bp-activity/bp-activity-notifications.php
r10479 r10487 56 56 $poster_name = bp_core_get_user_displayname( $activity->user_id ); 57 57 58 58 remove_filter( 'bp_get_activity_content_body', 'convert_smilies' ); 59 59 remove_filter( 'bp_get_activity_content_body', 'wpautop' ); 60 60 remove_filter( 'bp_get_activity_content_body', 'bp_activity_truncate_entry', 5 ); … … 63 63 $content = apply_filters( 'bp_get_activity_content_body', $activity->content ); 64 64 65 65 add_filter( 'bp_get_activity_content_body', 'convert_smilies' ); 66 66 add_filter( 'bp_get_activity_content_body', 'wpautop' ); 67 67 add_filter( 'bp_get_activity_content_body', 'bp_activity_truncate_entry', 5 ); … … 124 124 $thread_link = bp_activity_get_permalink( $params['activity_id'] ); 125 125 126 126 remove_filter( 'bp_get_activity_content_body', 'convert_smilies' ); 127 127 remove_filter( 'bp_get_activity_content_body', 'wpautop' ); 128 128 remove_filter( 'bp_get_activity_content_body', 'bp_activity_truncate_entry', 5 ); … … 131 131 $content = apply_filters( 'bp_get_activity_content_body', $params['content'] ); 132 132 133 133 add_filter( 'bp_get_activity_content_body', 'convert_smilies' ); 134 134 add_filter( 'bp_get_activity_content_body', 'wpautop' ); 135 135 add_filter( 'bp_get_activity_content_body', 'bp_activity_truncate_entry', 5 ); -
trunk/src/bp-activity/bp-activity-template.php
r10455 r10487 2221 2221 * @param bool $value Whether or not the current activity item is in the current user's favorites. 2222 2222 */ 2223 2223 return (bool) apply_filters( 'bp_get_activity_is_favorite', in_array( $activities_template->activity->id, (array) $activities_template->my_favs ) ); 2224 2224 } 2225 2225 … … 3408 3408 * @param string $value All of the links to be displayed to the user. 3409 3409 */ 3410 3410 return apply_filters( 'bp_get_activity_filter_links', implode( "\n", $component_links ) ); 3411 3411 } 3412 3412 -
trunk/src/bp-activity/classes/class-bp-activity-feed.php
r10455 r10487 425 425 <ttl><?php echo $this->ttl; ?></ttl> 426 426 <sy:updatePeriod><?php echo $this->update_period; ?></sy:updatePeriod> 427 427 <sy:updateFrequency><?php echo $this->update_frequency; ?></sy:updateFrequency> 428 428 <?php 429 429 -
trunk/src/bp-core/bp-core-avatars.php
r10417 r10487 1446 1446 1447 1447 /** 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1448 * Filters the list of allowed image types. 1449 * 1450 * @since 2.3.0 1451 * 1452 * @param array $allowed_types List of image types. 1453 */ 1454 $avatar_types = (array) apply_filters( 'bp_core_get_allowed_avatar_types', $allowed_types ); 1455 1456 if ( empty( $avatar_types ) ) { 1457 $avatar_types = $allowed_types; 1458 } else { 1459 $avatar_types = array_intersect( $allowed_types, $avatar_types ); 1460 } 1461 1462 return array_values( $avatar_types ); 1463 1463 } 1464 1464 -
trunk/src/bp-core/bp-core-buddybar.php
r10417 r10487 205 205 } 206 206 207 207 /** 208 208 * If this nav item is hidden for the displayed user, and 209 209 * the logged in user is not the displayed user … … 215 215 216 216 /** 217 217 * If the nav item is visible, we are not viewing a user, and this is a root 218 218 * component, don't attach the default subnav function so we can display a 219 219 * directory or something else. 220 220 */ 221 221 if ( ( -1 != $r['position'] ) && bp_is_root_component( $r['slug'] ) && ! bp_displayed_user_id() ) { 222 222 return; -
trunk/src/bp-core/bp-core-catchuri.php
r10458 r10487 553 553 function bp_core_no_access( $args = '' ) { 554 554 555 556 557 558 555 // Build the redirect URL. 556 $redirect_url = is_ssl() ? 'https://' : 'http://'; 557 $redirect_url .= $_SERVER['HTTP_HOST']; 558 $redirect_url .= $_SERVER['REQUEST_URI']; 559 559 560 560 $defaults = array( -
trunk/src/bp-core/bp-core-functions.php
r10484 r10487 756 756 function bp_core_component_slug_from_root_slug( $root_slug ) { 757 757 $slug_chunks = explode( '/', $root_slug ); 758 758 $slug = array_pop( $slug_chunks ); 759 759 760 760 /** … … 766 766 * @param string $root_slug The root slug which comes from $bp->pages-[component]->slug. 767 767 */ 768 768 return apply_filters( 'bp_core_component_slug_from_root_slug', $slug, $root_slug ); 769 769 } 770 770 … … 2172 2172 return true; 2173 2173 } 2174 2174 } 2175 2175 2176 2176 // Default to WP and glotpress. … … 2971 2971 * @param BP_Email $email The email we tried to send. 2972 2972 */ 2973 2973 do_action( 'bp_send_email_failure', $status, $email ); 2974 2974 2975 2975 } else { -
trunk/src/bp-core/bp-core-template.php
r10479 r10487 1566 1566 * @param string $component Name of the component being checked. 1567 1567 */ 1568 1568 return apply_filters( 'bp_is_current_component', $is_current_component, $component ); 1569 1569 } 1570 1570 -
trunk/src/bp-core/classes/class-bp-core-notification.php
r10417 r10487 179 179 : ''; 180 180 181 181 return $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$bp->core->table_name_notifications} WHERE user_id = %d {$is_new}", $user_id ) ); 182 182 } 183 183 -
trunk/src/bp-core/classes/class-bp-email.php
r10483 r10487 737 737 // Load the template. 738 738 bp_locate_template( bp_email_get_template( $this->post_object ), true, false ); 739 739 $this->set_template( ob_get_contents() ); 740 740 741 741 ob_end_clean(); -
trunk/src/bp-core/css/admin-bar-rtl.css
r9819 r10487 18 18 } 19 19 #wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul ul { 20 20 right: 0; 21 21 } 22 22 -
trunk/src/bp-core/css/admin-bar.css
r9819 r10487 18 18 } 19 19 #wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul ul { 20 20 left: 0; 21 21 } 22 22 -
trunk/src/bp-core/deprecated/2.1.php
r10446 r10487 459 459 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), $author->display_name ) 460 460 ) ); 461 461 echo ' ' . $author->display_name . '</a>'; 462 462 echo '<div class="admin-bar-clear"></div>'; 463 463 echo '</li>'; -
trunk/src/bp-core/deprecated/2.5.php
r10479 r10487 28 28 * @param string $value Value to set the "From" name to. 29 29 */ 30 30 return apply_filters( 'bp_core_email_from_name_filter', bp_get_option( 'blogname', 'WordPress' ) ); 31 31 } 32 32 -
trunk/src/bp-groups/bp-groups-actions.php
r10454 r10487 107 107 return false; 108 108 109 109 if ( !bp_user_can_create_groups() ) { 110 110 bp_core_add_message( __( 'Sorry, you are not allowed to create groups.', 'buddypress' ), 'error' ); 111 111 bp_core_redirect( bp_get_groups_directory_permalink() ); -
trunk/src/bp-groups/classes/class-bp-groups-group.php
r10454 r10487 280 280 $this->creator_id = apply_filters( 'groups_group_creator_id_before_save', $this->creator_id, $this->id ); 281 281 $this->name = apply_filters( 'groups_group_name_before_save', $this->name, $this->id ); 282 282 $this->slug = apply_filters( 'groups_group_slug_before_save', $this->slug, $this->id ); 283 283 $this->description = apply_filters( 'groups_group_description_before_save', $this->description, $this->id ); 284 284 $this->status = apply_filters( 'groups_group_status_before_save', $this->status, $this->id ); 285 285 $this->enable_forum = apply_filters( 'groups_group_enable_forum_before_save', $this->enable_forum, $this->id ); 286 286 $this->date_created = apply_filters( 'groups_group_date_created_before_save', $this->date_created, $this->id ); -
trunk/src/bp-groups/classes/class-bp-groups-member.php
r10454 r10487 852 852 $bp = buddypress(); 853 853 854 854 return $wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->groups->table_name_members} WHERE user_id = %d AND group_id = %d AND is_confirmed = 0 AND inviter_id = 0 AND invite_sent = 0", $user_id, $group_id ) ); 855 855 } 856 856 -
trunk/src/bp-members/bp-members-functions.php
r10479 r10487 1739 1739 * @param array $result Results of user validation including errors, if any. 1740 1740 */ 1741 1741 return apply_filters( 'bp_core_validate_user_signup', $result ); 1742 1742 } 1743 1743 -
trunk/src/bp-members/bp-members-screens.php
r10417 r10487 94 94 $bp->signup->step = 'request-details'; 95 95 96 96 if ( !bp_get_signup_allowed() ) { 97 97 $bp->signup->step = 'registration-disabled'; 98 98 -
trunk/src/bp-templates/bp-legacy/buddypress-functions.php
r10296 r10487 730 730 731 731 $object_search_text = bp_get_search_default_text( $object ); 732 732 if ( ! empty( $_POST['search_terms'] ) && $object_search_text != $_POST['search_terms'] && 'false' != $_POST['search_terms'] && 'undefined' != $_POST['search_terms'] ) 733 733 $qs[] = 'search_terms=' . urlencode( $_POST['search_terms'] ); 734 734 … … 794 794 return; 795 795 796 796 /** 797 797 * AJAX requests happen too early to be seen by bp_update_is_directory() 798 798 * so we do it manually here to ensure templates load with the correct -
trunk/src/bp-templates/bp-legacy/buddypress/groups/index.php
r10265 r10487 106 106 107 107 /** 108 109 110 111 108 * Fires and displays the group content. 109 * 110 * @since 1.1.0 111 */ 112 112 do_action( 'bp_directory_groups_content' ); ?> 113 113 … … 117 117 118 118 /** 119 120 121 122 119 * Fires after the display of the groups content. 120 * 121 * @since 1.1.0 122 */ 123 123 do_action( 'bp_after_directory_groups_content' ); ?> 124 124 … … 128 128 129 129 /** 130 131 132 133 130 * Fires after the display of the groups. 131 * 132 * @since 1.1.0 133 */ 134 134 do_action( 'bp_after_directory_groups' ); ?> 135 135 -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin.php
r10181 r10487 142 142 <label for="group-invite-status-admins"><input type="radio" name="group-invite-status" id="group-invite-status-admins" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> /> <?php _e( 'Group admins only', 'buddypress' ); ?></label> 143 143 144 144 </div> 145 145 146 146 <hr /> -
trunk/src/bp-templates/bp-legacy/buddypress/members/index.php
r10265 r10487 110 110 111 111 /** 112 113 114 115 112 * Fires and displays the members content. 113 * 114 * @since 1.1.0 115 */ 116 116 do_action( 'bp_directory_members_content' ); ?> 117 117 -
trunk/src/bp-templates/bp-legacy/css/twentyfifteen.scss
r10451 r10487 1503 1503 height: auto; 1504 1504 width: auto; 1505 1506 1505 } 1506 } 1507 1507 1508 1508 .main-column { 1509 1509 margin-left: 0; 1510 1510 } 1511 1511 1512 1512 .submit { … … 1514 1514 display: inline-block; 1515 1515 width: 100%; 1516 1517 1518 1516 } 1517 } 1518 } 1519 1519 } 1520 1520 -
trunk/src/bp-xprofile/bp-xprofile-filters.php
r10434 r10487 223 223 224 224 // Valid field values of 0 or '0' get caught by empty(), so we have an extra check for these. See #BP5731. 225 225 if ( ! isset( $field_value ) || empty( $field_value ) && ( '0' !== $field_value ) ) { 226 226 return false; 227 227 } -
trunk/tests/phpunit/testcases/groups/class-bp-groups-member.php
r10445 r10487 257 257 /** 258 258 * @group groups_reject_membership_request 259 259 * @group group_membership_requests 260 260 * @group group_membership 261 261 */ -
trunk/tests/phpunit/testcases/notifications/class-bp-notifications-template.php
r9819 r10487 8 8 class BP_Tests_Notifications_BPNotificationsTemplate extends BP_UnitTestCase { 9 9 /** 10 11 12 13 10 * @group pagination 11 * @group BP6229 12 */ 13 public function test_pagination_params_in_url_should_be_passed_to_query() { 14 14 $u = $this->factory->user->create(); 15 15 … … 38 38 $expected = array( $notifications[3], $notifications[2] ); 39 39 $this->assertEquals( $expected, wp_list_pluck( $template->notifications, 'id' ) ); 40 40 } 41 41 }
Note: See TracChangeset
for help on using the changeset viewer.