Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/03/2016 05:01:13 AM (9 years ago)
Author:
tw2113
Message:

Adds many missing @since tags to the BP Core component.

See #6398.

File:
1 edited

Legend:

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

    r10487 r10497  
    2525 *   - OUTSIDE ROOT: http:// example.com / sites / buddypress / members / andy / [current_component] / [current_action] / [action_variables] / [action_variables] / ...
    2626 *
    27  *  Example:
     27 * Example:
    2828 *    - http://example.com/members/andy/profile/edit/group/5/
    2929 *    - $bp->current_component: string 'xprofile'
     
    7878    }
    7979
    80     // If running off blog other than root, any subdirectory names must be
    81     // removed from $bp_uri. This includes two cases:
    82     //
    83     // 1. when WP is installed in a subdirectory,
    84     // 2. when BP is running on secondary blog of a subdirectory
    85     // multisite installation. Phew!
     80    /*
     81     * If running off blog other than root, any subdirectory names must be
     82     * removed from $bp_uri. This includes two cases:
     83     *
     84     * 1. when WP is installed in a subdirectory,
     85     * 2. when BP is running on secondary blog of a subdirectory
     86     * multisite installation. Phew!
     87     */
    8688    if ( is_multisite() && !is_subdomain_install() && ( bp_is_multiblog_mode() || 1 != bp_get_root_blog_id() ) ) {
    8789
     
    131133    $bp_uri = array_merge( array(), $bp_uri );
    132134
    133     // If a component is set to the front page, force its name into $bp_uri
    134     // so that $current_component is populated (unless a specific WP post is being requested
    135     // via a URL parameter, usually signifying Preview mode).
     135    /*
     136     * If a component is set to the front page, force its name into $bp_uri
     137     * so that $current_component is populated (unless a specific WP post is being requested
     138     * via a URL parameter, usually signifying Preview mode).
     139     */
    136140    if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_on_front' ) && empty( $bp_uri ) && empty( $_GET['p'] ) && empty( $_GET['page_id'] ) ) {
    137141        $post = get_post( get_option( 'page_on_front' ) );
     
    391395 *   wp-content/themes/[activated_theme]/members/index.php
    392396 *
     397 * @since 1.0.0
     398 *
    393399 * @param array $templates Array of templates to attempt to load.
    394400 */
     
    494500/**
    495501 * Redirect away from /profile URIs if XProfile is not enabled.
     502 *
     503 * @since 1.0.0
    496504 */
    497505function bp_core_catch_profile_uri() {
Note: See TracChangeset for help on using the changeset viewer.