Skip to:
Content

BuddyPress.org

Ticket #8224: 8224.patch

File 8224.patch, 4.6 KB (added by passoniate, 5 years ago)

Patch

  • src/bp-core/bp-core-template-loader.php

     
    9797 */
    9898function bp_locate_template( $template_names, $load = false, $require_once = true ) {
    9999
    100         // Bail when there are no templates to locate
     100        // Bail when there are no templates to locate.
    101101        if ( empty( $template_names ) ) {
    102102                return false;
    103103        }
     
    135135
    136136        /**
    137137         * 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 locator.
     138         * and should not be used to short-circuit any part of the template locater.
    139139         *
    140140         * If you want to override a specific template part, please either filter
    141141         * 'bp_get_template_part' or add a new location to the template stack.
  • src/bp-core/bp-core-template.php

     
    152152         * @since 2.0.0
    153153         *
    154154         * @param string $title     Text to be used in <title> tag.
    155          * @param string $component Current componet being displayed.
     155         * @param string $component Current component being displayed.
    156156         */
    157157        return apply_filters( 'bp_get_directory_title', $title, $component );
    158158}
     
    352352 * Format a date based on a UNIX timestamp.
    353353 *
    354354 * This function can be used to turn a UNIX timestamp into a properly formatted
    355  * (and possibly localized) string, userful for ouputting the date & time an
     355 * (and possibly localized) string, useful for outputting the date & time an
    356356 * action took place.
    357357 *
    358358 * Not to be confused with `bp_core_time_since()`, this function is best used
     
    12191219         *
    12201220         * @since 1.7.0
    12211221         *
    1222          * @param string $subject Client friendy version of the root blog name.
     1222         * @param string $subject Client friendly version of the root blog name.
    12231223         * @param array  $r       Array of arguments for the email subject.
    12241224         */
    12251225        return apply_filters( 'bp_get_email_subject', $subject, $r );
     
    12481248        }
    12491249
    12501250        /**
    1251          * Filters the template paramenters to be used in the query string.
     1251         * Filters the template parameters to be used in the query string.
    12521252         *
    12531253         * Allows templates to pass parameters into the template loops via AJAX.
    12541254         *
     
    16841684                } else {
    16851685                        foreach ( $bp->active_components as $id ) {
    16861686                                // If the $component parameter does not match the current_component,
    1687                                 // then move along, these are not the droids you are looking for.
     1687                                // then move along, these are not the druids you are looking for.
    16881688                                if ( empty( $bp->{$id}->root_slug ) || $bp->{$id}->root_slug != $bp->current_component ) {
    16891689                                        continue;
    16901690                                }
     
    30163016                return $bp_title_parts;
    30173017        }
    30183018
    3019         // Now we can build the BP Title Parts
     3019        // Now we can build the BP Title Parts.
    30203020        // Is there a displayed user, and do they have a name?
    30213021        $displayed_user_name = bp_get_displayed_user_fullname();
    30223022
     
    36193619                $args->walker = new BP_Walker_Nav_Menu;
    36203620        }
    36213621
    3622         // Sanitise values for class and ID.
     3622        // Sanitize values for class and ID.
    36233623        $args->container_class = sanitize_html_class( $args->container_class );
    36243624        $args->container_id    = sanitize_html_class( $args->container_id );
    36253625
  • src/bp-core/bp-core-theme-compatibility.php

     
    189189 *    fallback check for themes that were derived from bp-default, and have
    190190 *    not been updated for BP 1.7+; we make the assumption that any theme in
    191191 *    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.
    193193 *
    194194 * @since 1.9.0
    195195 *
     
    432432         * than the width used by BuddyPress, so we need to manually set the
    433433         * content width for the concerned themes.
    434434         *
    435          * Example: array( stylesheet => content width used by BuddyPress )
     435         * Example: array( stylesheet => content width used by BuddyPress ).
    436436         */
    437437        $bp_content_widths = array(
    438438                'twentyfifteen'  => 1300,
     
    945945 *
    946946 * @since 1.9.2
    947947 *
    948  * @param string $retval The current post content.
     948 * @param  string $retval The current post content.
    949949 * @return string $retval
    950950 */
    951951function bp_theme_compat_toggle_is_page( $retval = '' ) {