Ticket #8224: 8224.patch
File 8224.patch, 4.6 KB (added by , 5 years ago) |
---|
-
src/bp-core/bp-core-template-loader.php
97 97 */ 98 98 function bp_locate_template( $template_names, $load = false, $require_once = true ) { 99 99 100 // Bail when there are no templates to locate 100 // Bail when there are no templates to locate. 101 101 if ( empty( $template_names ) ) { 102 102 return false; 103 103 } … … 135 135 136 136 /** 137 137 * This action exists only to follow the standard BuddyPress coding convention, 138 * and should not be used to short-circuit any part of the template locat or.138 * and should not be used to short-circuit any part of the template locater. 139 139 * 140 140 * If you want to override a specific template part, please either filter 141 141 * 'bp_get_template_part' or add a new location to the template stack. -
src/bp-core/bp-core-template.php
152 152 * @since 2.0.0 153 153 * 154 154 * @param string $title Text to be used in <title> tag. 155 * @param string $component Current compone t being displayed.155 * @param string $component Current component being displayed. 156 156 */ 157 157 return apply_filters( 'bp_get_directory_title', $title, $component ); 158 158 } … … 352 352 * Format a date based on a UNIX timestamp. 353 353 * 354 354 * This function can be used to turn a UNIX timestamp into a properly formatted 355 * (and possibly localized) string, use rful for ouputting the date & time an355 * (and possibly localized) string, useful for outputting the date & time an 356 356 * action took place. 357 357 * 358 358 * Not to be confused with `bp_core_time_since()`, this function is best used … … 1219 1219 * 1220 1220 * @since 1.7.0 1221 1221 * 1222 * @param string $subject Client friend y version of the root blog name.1222 * @param string $subject Client friendly version of the root blog name. 1223 1223 * @param array $r Array of arguments for the email subject. 1224 1224 */ 1225 1225 return apply_filters( 'bp_get_email_subject', $subject, $r ); … … 1248 1248 } 1249 1249 1250 1250 /** 1251 * Filters the template parame nters to be used in the query string.1251 * Filters the template parameters to be used in the query string. 1252 1252 * 1253 1253 * Allows templates to pass parameters into the template loops via AJAX. 1254 1254 * … … 1684 1684 } else { 1685 1685 foreach ( $bp->active_components as $id ) { 1686 1686 // If the $component parameter does not match the current_component, 1687 // then move along, these are not the dr oids you are looking for.1687 // then move along, these are not the druids you are looking for. 1688 1688 if ( empty( $bp->{$id}->root_slug ) || $bp->{$id}->root_slug != $bp->current_component ) { 1689 1689 continue; 1690 1690 } … … 3016 3016 return $bp_title_parts; 3017 3017 } 3018 3018 3019 // Now we can build the BP Title Parts 3019 // Now we can build the BP Title Parts. 3020 3020 // Is there a displayed user, and do they have a name? 3021 3021 $displayed_user_name = bp_get_displayed_user_fullname(); 3022 3022 … … 3619 3619 $args->walker = new BP_Walker_Nav_Menu; 3620 3620 } 3621 3621 3622 // Saniti se values for class and ID.3622 // Sanitize values for class and ID. 3623 3623 $args->container_class = sanitize_html_class( $args->container_class ); 3624 3624 $args->container_id = sanitize_html_class( $args->container_id ); 3625 3625 -
src/bp-core/bp-core-theme-compatibility.php
189 189 * fallback check for themes that were derived from bp-default, and have 190 190 * not been updated for BP 1.7+; we make the assumption that any theme in 191 191 * this category will have the members-loop.php template, and so use its 192 * presence as an indicator that theme compatibility is not required 192 * presence as an indicator that theme compatibility is not required. 193 193 * 194 194 * @since 1.9.0 195 195 * … … 432 432 * than the width used by BuddyPress, so we need to manually set the 433 433 * content width for the concerned themes. 434 434 * 435 * Example: array( stylesheet => content width used by BuddyPress ) 435 * Example: array( stylesheet => content width used by BuddyPress ). 436 436 */ 437 437 $bp_content_widths = array( 438 438 'twentyfifteen' => 1300, … … 945 945 * 946 946 * @since 1.9.2 947 947 * 948 * @param string $retval The current post content.948 * @param string $retval The current post content. 949 949 * @return string $retval 950 950 */ 951 951 function bp_theme_compat_toggle_is_page( $retval = '' ) {