Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/13/2015 02:02:56 AM (10 years ago)
Author:
tw2113
Message:

Standardizing our @since tags for the Core component.

See #6576.

File:
1 edited

Legend:

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

    r10012 r10108  
    11<?php
    2 
    32/**
    43 * BuddyPress URI catcher.
     
    1110 */
    1211
    13 // Exit if accessed directly
     12// Exit if accessed directly.
    1413defined( 'ABSPATH' ) || exit;
    1514
     
    3130 *    - $bp->action_variables: array ['group', 5]
    3231 *
    33  * @since BuddyPress (1.0.0)
     32 * @since 1.0.0
    3433 */
    3534function bp_core_set_uri_globals() {
     
    5958     * Filters the BuddyPress global URI path.
    6059     *
    61      * @since BuddyPress (1.0.0)
     60     * @since 1.0.0
    6261     *
    6362     * @param string $path Path to set.
     
    340339 * Are root profiles enabled and allowed?
    341340 *
    342  * @since BuddyPress (1.6.0)
     341 * @since 1.6.0
    343342 *
    344343 * @return bool True if yes, false if no.
     
    354353     * Filters whether or not root profiles are enabled and allowed.
    355354     *
    356      * @since BuddyPress (1.6.0)
     355     * @since 1.6.0
    357356     *
    358357     * @param bool $retval Whether or not root profiles are available.
     
    407406     * Allows plugins to alter where the template files are located.
    408407     *
    409      * @since BuddyPress (1.1.0)
     408     * @since 1.1.0
    410409     *
    411410     * @param string $template           Located template path.
     
    423422         * Fires before the loading of a located template file.
    424423         *
    425          * @since BuddyPress (1.6.0)
     424         * @since 1.6.0
    426425         *
    427426         * @param string $located_template Template found to be loaded.
     
    432431         * Filters the selected template right before loading.
    433432         *
    434          * @since BuddyPress (1.1.0)
     433         * @since 1.1.0
    435434         *
    436435         * @param string $located_template Template found to be loaded.
     
    441440         * Fires after the loading of a located template file.
    442441         *
    443          * @since BuddyPress (1.6.0)
     442         * @since 1.6.0
    444443         *
    445444         * @param string $located_template Template found that was loaded.
     
    466465         * Fires if there are no found templates to load and theme compat is needed.
    467466         *
    468          * @since BuddyPress (1.7.0)
     467         * @since 1.7.0
    469468         */
    470469        do_action( 'bp_setup_theme_compat' );
     
    481480         * Filters the path to redirect users to if XProfile is not enabled.
    482481         *
    483          * @since BuddyPress (1.0.0)
     482         * @since 1.0.0
    484483         *
    485484         * @param string $value Path to redirect users to.
     
    492491 * Catch unauthorized access to certain BuddyPress pages and redirect accordingly.
    493492 *
    494  * @since BuddyPress (1.5.0)
     493 * @since 1.5.0
    495494 */
    496495function bp_core_catch_no_access() {
     
    517516 * If authenticated, redirects user back to requested content by default.
    518517 *
    519  * @since BuddyPress (1.5.0)
     518 * @since 1.5.0
    520519 *
    521520 * @param array|string $args {
     
    550549     * Filters the arguments used for user redirecting when visiting access controlled areas.
    551550     *
    552      * @since BuddyPress (1.6.0)
     551     * @since 1.6.0
    553552     *
    554553     * @param array $r Array of parsed arguments for redirect determination.
     
    604603 * Hooks into the "bpnoaccess" action defined in bp_core_no_access().
    605604 *
    606  * @since BuddyPress (1.5.0)
     605 * @since 1.5.0
    607606 *
    608607 * @global string $error Error message to pass to wp-login.php.
     
    614613     * Filters the error message for wp-login.php when needing to log in before accessing.
    615614     *
    616      * @since BuddyPress (1.5.0)
     615     * @since 1.5.0
    617616     *
    618617     * @param string $value Error message to display.
     
    635634 * example.com/groups/mygroup/home/.
    636635 *
    637  * @since BuddyPress (1.6.0)
     636 * @since 1.6.0
    638637 *
    639638 * @see BP_Members_Component::setup_globals() where
     
    648647     * Filters whether or not to do canonical redirects on BuddyPress URLs.
    649648     *
    650      * @since BuddyPress (1.6.0)
     649     * @since 1.6.0
    651650     *
    652651     * @param bool $value Whether or not to do canonical redirects. Default true.
     
    697696 * Output rel=canonical header tag for BuddyPress content.
    698697 *
    699  * @since BuddyPress (1.6.0)
     698 * @since 1.6.0
    700699 */
    701700function bp_rel_canonical() {
     
    709708 * Get the canonical URL of the current page.
    710709 *
    711  * @since BuddyPress (1.6.0)
     710 * @since 1.6.0
    712711 *
    713712 * @uses apply_filters() Filter bp_get_canonical_url to modify return value.
     
    757756             * Filters the logged in register page redirect URL.
    758757             *
    759              * @since BuddyPress (1.5.1)
     758             * @since 1.5.1
    760759             *
    761760             * @param string $value URL to redirect logged in members to.
     
    805804     * Filters the canonical url of the current page.
    806805     *
    807      * @since BuddyPress (1.6.0)
     806     * @since 1.6.0
    808807     *
    809808     * @param string $canonical_url Canonical URL of the current page.
     
    816815 * Return the URL as requested on the current page load by the user agent.
    817816 *
    818  * @since BuddyPress (1.6.0)
     817 * @since 1.6.0
    819818 *
    820819 * @return string Requested URL string.
     
    831830     * Filters the URL as requested on the current page load by the user agent.
    832831     *
    833      * @since BuddyPress (1.7.0)
     832     * @since 1.7.0
    834833     *
    835834     * @param string $value Requested URL string.
     
    847846 * notice in future versions of BuddyPress.
    848847 *
    849  * @since BuddyPress (1.6.0)
     848 * @since 1.6.0
    850849 *
    851850 * @uses bp_is_blog_page()
     
    879878 * (and plugin authors!) should ignore it.
    880879 *
    881  * @since BuddyPress (1.6.1)
     880 * @since 1.6.1
    882881 *
    883882 * @link https://buddypress.trac.wordpress.org/ticket/4329
     
    898897 * notice in future versions of BuddyPress.
    899898 *
    900  * @since BuddyPress (1.6.0)
     899 * @since 1.6.0
    901900 */
    902901function _bp_maybe_remove_rel_canonical() {
Note: See TracChangeset for help on using the changeset viewer.