Skip to:
Content

BuddyPress.org

Changeset 12546


Ignore:
Timestamp:
01/29/2020 09:19:27 PM (5 years ago)
Author:
imath
Message:

Core: fix PHP code standards & typos in inline comments

Props passoniate, dontdream

Fixes #8224

Location:
trunk/src/bp-core
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-template-loader.php

    r12281 r12546  
    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;
     
    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
  • trunk/src/bp-core/bp-core-template.php

    r12517 r12546  
    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 );
     
    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 *
     
    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     */
     
    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.
     
    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();
     
    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 );
  • trunk/src/bp-core/bp-core-theme-compatibility.php

    r12281 r12546  
    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
     
    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(
     
    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 */
Note: See TracChangeset for help on using the changeset viewer.