Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/30/2011 02:00:16 PM (15 years ago)
Author:
djpaul
Message:

Replace all mentions of 1.3 with 1.5 in phpDoc and deprecated function notices. Fixes #3416

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/deprecated/1.5.php

    r4905 r4907  
    55 * @package BuddyPress
    66 * @subpackage Core
    7  * @deprecated Since 1.3
     7 * @deprecated Since 1.5
    88 */
    99
     
    2626 * Use is_multisite() instead.
    2727 *
    28  * @deprecated 1.3
     28 * @deprecated 1.5
    2929 * @deprecated Use is_multisite()
    3030 */
    3131function bp_core_is_multisite() {
    32     _deprecated_function( __FUNCTION__, '1.3', 'is_multisite()' );
     32    _deprecated_function( __FUNCTION__, '1.5', 'is_multisite()' );
    3333    return is_multisite();
    3434}
     
    3737 * bp_core_is_main_site
    3838 *
    39  * Checks if current blog is root blog of site. Deprecated in 1.3.
    40  *
    41  * @deprecated 1.3
     39 * Checks if current blog is root blog of site. Deprecated in 1.5.
     40 *
     41 * @deprecated 1.5
    4242 * @deprecated Use is_main_site()
    4343 * @package BuddyPress
     
    4747 */
    4848function bp_core_is_main_site( $blog_id = '' ) {
    49     _deprecated_function( __FUNCTION__, '1.3', 'is_main_site()' );
     49    _deprecated_function( __FUNCTION__, '1.5', 'is_main_site()' );
    5050    return is_main_site( $blog_id );
    5151}
     
    5555/**
    5656 * In BuddyPress 1.1 - 1.2.x, this function provided a better version of add_menu_page()
    57  * that allowed positioning of menus. Deprecated in 1.3 in favour of a WP core function.
    58  *
    59  * @deprecated 1.3
     57 * that allowed positioning of menus. Deprecated in 1.5 in favour of a WP core function.
     58 *
     59 * @deprecated 1.5
    6060 * @deprecated Use add_menu_page().
    6161 * @since 1.1
     
    7575    extract( $r, EXTR_SKIP );
    7676
    77     _deprecated_function( __FUNCTION__, '1.3', 'Use add_menu_page()' );
     77    _deprecated_function( __FUNCTION__, '1.5', 'Use add_menu_page()' );
    7878    return add_menu_page( $page_title, $menu_title, $capability, $file, $function, $icon_url, $position );
    7979}
     
    8282
    8383function bp_is_activity_permalink() {
    84     _deprecated_function( __FUNCTION__, '1.3', 'bp_is_single_activity' );
     84    _deprecated_function( __FUNCTION__, '1.5', 'bp_is_single_activity' );
    8585    bp_is_single_activity();
    8686}
     
    8989
    9090function bp_core_get_wp_profile() {
    91     _deprecated_function( __FUNCTION__, '1.3' );
     91    _deprecated_function( __FUNCTION__, '1.5' );
    9292
    9393    global $bp;
     
    161161
    162162function bp_is_home() {
    163     _deprecated_function( __FUNCTION__, '1.3', 'bp_is_my_profile' );
     163    _deprecated_function( __FUNCTION__, '1.5', 'bp_is_my_profile' );
    164164    return bp_is_my_profile();
    165165}
     
    168168 * Is the user on the front page of the site?
    169169 *
    170  * @deprecated 1.3
     170 * @deprecated 1.5
    171171 * @deprecated Use is_front_page()
    172172 * @return bool
    173173 */
    174174function bp_is_front_page() {
    175     _deprecated_function( __FUNCTION__, '1.3', "is_front_page()" );
     175    _deprecated_function( __FUNCTION__, '1.5', "is_front_page()" );
    176176    return is_front_page();
    177177}
     
    180180 * Is the front page of the site set to the Activity component?
    181181 *
    182  * @deprecated 1.3
     182 * @deprecated 1.5
    183183 * @deprecated Use bp_is_component_front_page( 'activity' )
    184184 * @return bool
    185185 */
    186186function bp_is_activity_front_page() {
    187     _deprecated_function( __FUNCTION__, '1.3', "bp_is_component_front_page( 'activity' )" );
     187    _deprecated_function( __FUNCTION__, '1.5', "bp_is_component_front_page( 'activity' )" );
    188188    return bp_is_component_front_page( 'activity' );
    189189}
    190190
    191191function bp_is_member() {
    192     _deprecated_function( __FUNCTION__, '1.3', 'bp_is_user' );
     192    _deprecated_function( __FUNCTION__, '1.5', 'bp_is_user' );
    193193    bp_is_user();
    194194}
    195195
    196196function bp_loggedinuser_link() {
    197     _deprecated_function( __FUNCTION__, '1.3', 'bp_logged_in_user_link' );
     197    _deprecated_function( __FUNCTION__, '1.5', 'bp_logged_in_user_link' );
    198198    bp_loggedin_user_link();
    199199}
     
    201201/**
    202202 * Only show the search form if there are available objects to search for.
    203  * Deprecated in 1.3; not used anymore.
     203 * Deprecated in 1.5; not used anymore.
    204204 *
    205205 * @return bool
    206206 */
    207207function bp_search_form_enabled() {
    208     _deprecated_function( __FUNCTION__, '1.3', 'No longer required.' );
     208    _deprecated_function( __FUNCTION__, '1.5', 'No longer required.' );
    209209    return apply_filters( 'bp_search_form_enabled', true );
    210210}
     
    213213 * Template tag version of bp_get_page_title()
    214214 *
    215  * @deprecated 1.3
     215 * @deprecated 1.5
    216216 * @deprecated Use wp_title()
    217217 * @since 1.0
     
    221221}
    222222    /**
    223      * Prior to BuddyPress 1.3, this was used to generate the page's <title> text.
     223     * Prior to BuddyPress 1.5, this was used to generate the page's <title> text.
    224224     * Now, just simply use wp_title().
    225225     *
    226      * @deprecated 1.3
     226     * @deprecated 1.5
    227227     * @deprecated Use wp_title()
    228228     * @since 1.0
    229229     */
    230230    function bp_get_page_title() {
    231         _deprecated_function( __FUNCTION__, '1.3', 'wp_title()' );
     231        _deprecated_function( __FUNCTION__, '1.5', 'wp_title()' );
    232232        $title = wp_title( '|', false, 'right' ) . get_bloginfo( 'name', 'display' );
    233233
     
    241241 * Generate a link to log out. Last used in BP 1.2-beta. You should be using wp_logout_url().
    242242 *
    243  * @deprecated 1.3
     243 * @deprecated 1.5
    244244 * @deprecated Use wp_logout_url()
    245245 * @since 1.0
    246246 */
    247247function bp_log_out_link() {
    248     _deprecated_function( __FUNCTION__, '1.3', 'wp_logout_url()' );
     248    _deprecated_function( __FUNCTION__, '1.5', 'wp_logout_url()' );
    249249
    250250    $logout_link = '<a href="' . wp_logout_url( bp_get_root_domain() ) . '">' . __( 'Log Out', 'buddypress' ) . '</a>';
     
    255255 * Send an email and a BP notification on receipt of an @-mention in a group
    256256 *
    257  * @deprecated 1.3
     257 * @deprecated 1.5
    258258 * @deprecated Deprecated in favor of the more general bp_activity_at_message_notification()
    259259 */
     
    261261    global $bp;
    262262   
    263     _deprecated_function( __FUNCTION__, '1.3', 'bp_activity_at_message_notification()' );
     263    _deprecated_function( __FUNCTION__, '1.5', 'bp_activity_at_message_notification()' );
    264264
    265265    /* Scan for @username strings in an activity update. Notify each user. */
     
    322322
    323323/**
    324  * BP 1.3 simplified notification functions a bit
     324 * BP 1.5 simplified notification functions a bit
    325325 */
    326326function bp_core_delete_notifications_for_user_by_type( $user_id, $component_name, $component_action ) {
    327     _deprecated_function( __FUNCTION__, '1.3', 'bp_core_delete_notifications_by_type()' );
     327    _deprecated_function( __FUNCTION__, '1.5', 'bp_core_delete_notifications_by_type()' );
    328328    return BP_Core_Notification::delete_for_user_by_type( $user_id, $component_name, $component_action );
    329329}
    330330
    331331function bp_core_delete_notifications_for_user_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false ) {
    332     _deprecated_function( __FUNCTION__, '1.3', 'bp_core_delete_notifications_by_item_id()' );
     332    _deprecated_function( __FUNCTION__, '1.5', 'bp_core_delete_notifications_by_item_id()' );
    333333    return BP_Core_Notification::delete_for_user_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id );
    334334}
    335335
    336336/**
    337  * In BP 1.3, these functions were renamed for greater consistency
     337 * In BP 1.5, these functions were renamed for greater consistency
    338338 */
    339339function bp_forum_directory_permalink() {
    340     _deprecated_function( __FUNCTION__, '1.3', 'bp_forums_directory_permalink()' );
     340    _deprecated_function( __FUNCTION__, '1.5', 'bp_forums_directory_permalink()' );
    341341    bp_forums_directory_permalink();
    342342}
    343343    function bp_get_forum_directory_permalink() {
    344         _deprecated_function( __FUNCTION__, '1.3', 'bp_get_forums_directory_permalink()' );
     344        _deprecated_function( __FUNCTION__, '1.5', 'bp_get_forums_directory_permalink()' );
    345345        return bp_get_forums_directory_permalink();
    346346    }
     
    350350/**
    351351 * Contains functions which were moved out of BP-Default's functions.php
    352  * in BuddyPress 1.3.
    353  *
    354  * @since 1.3
     352 * in BuddyPress 1.5.
     353 *
     354 * @since 1.5
    355355 */
    356356function bp_dtheme_deprecated() {
     
    359359     * In BuddyPress 1.2.x, this function filtered the dropdown on the
    360360     * Settings > Reading screen for selecting the page to show on front to
    361      * include "Activity Stream." As of 1.3.x, it is no longer required.
    362      *
    363      * @deprecated 1.3
     361     * include "Activity Stream." As of 1.5.x, it is no longer required.
     362     *
     363     * @deprecated 1.5
    364364     * @deprecated No longer required.
    365365     * @param string $page_html A list of pages as a dropdown (select list)
     
    369369     */
    370370    function bp_dtheme_wp_pages_filter( $page_html ) {
    371         _deprecated_function( __FUNCTION__, '1.3', "No longer required." );
     371        _deprecated_function( __FUNCTION__, '1.5', "No longer required." );
    372372        return $page_html;
    373373    }
     
    377377    /**
    378378     * In BuddyPress 1.2.x, this function hijacked the saving of page on front setting to save the activity stream setting.
    379      * As of 1.3.x, it is no longer required.
    380      *
    381      * @deprecated 1.3
     379     * As of 1.5.x, it is no longer required.
     380     *
     381     * @deprecated 1.5
    382382     * @deprecated No longer required.
    383383     * @param $string $oldvalue Previous value of get_option( 'page_on_front' )
     
    387387     */
    388388    function bp_dtheme_page_on_front_update( $oldvalue, $newvalue ) {
    389         _deprecated_function( __FUNCTION__, '1.3', "No longer required." );
     389        _deprecated_function( __FUNCTION__, '1.5', "No longer required." );
    390390        if ( !is_admin() || !is_super_admin() )
    391391            return false;
     
    398398    /**
    399399     * In BuddyPress 1.2.x, this function loaded the activity stream template if the front page display settings allow.
    400      * As of 1.3.x, it is no longer required.
    401      *
    402      * @deprecated 1.3
     400     * As of 1.5.x, it is no longer required.
     401     *
     402     * @deprecated 1.5
    403403     * @deprecated No longer required.
    404404     * @param string $template Absolute path to the page template
     
    407407     */
    408408    function bp_dtheme_page_on_front_template( $template ) {
    409         _deprecated_function( __FUNCTION__, '1.3', "No longer required." );
     409        _deprecated_function( __FUNCTION__, '1.5', "No longer required." );
    410410        return $template;
    411411    }
     
    415415    /**
    416416     * In BuddyPress 1.2.x, this forced the page ID as a string to stop the get_posts query from kicking up a fuss.
    417      * As of 1.3.x, it is no longer required.
    418      *
    419      * @deprecated 1.3
     417     * As of 1.5.x, it is no longer required.
     418     *
     419     * @deprecated 1.5
    420420     * @deprecated No longer required.
    421421     * @since 1.2
    422422     */
    423423    function bp_dtheme_fix_get_posts_on_activity_front() {
    424         _deprecated_function( __FUNCTION__, '1.3', "No longer required." );
     424        _deprecated_function( __FUNCTION__, '1.5', "No longer required." );
    425425    }
    426426    endif;
     
    429429    /**
    430430     * In BuddyPress 1.2.x, this was used as part of the code that set the activity stream to be on the front page.
    431      * As of 1.3.x, it is no longer required.
    432      *
    433      * @deprecated 1.3
     431     * As of 1.5.x, it is no longer required.
     432     *
     433     * @deprecated 1.5
    434434     * @deprecated No longer required.
    435435     * @param array $posts Posts as retrieved by WP_Query
     
    438438     */
    439439    function bp_dtheme_fix_the_posts_on_activity_front( $posts ) {
    440         _deprecated_function( __FUNCTION__, '1.3', "No longer required." );
     440        _deprecated_function( __FUNCTION__, '1.5', "No longer required." );
    441441        return $posts;
    442442    }
     
    446446    /**
    447447     * In BuddyPress 1.2.x, this added the javascript needed for blog comment replies.
    448      * As of 1.3.x, we recommend that you enqueue the comment-reply javascript in your theme's header.php.
    449      *
    450      * @deprecated 1.3
     448     * As of 1.5.x, we recommend that you enqueue the comment-reply javascript in your theme's header.php.
     449     *
     450     * @deprecated 1.5
    451451     * @deprecated Enqueue the comment-reply script in your theme's header.php.
    452452     * @since 1.2
    453453     */
    454454    function bp_dtheme_add_blog_comments_js() {
    455         _deprecated_function( __FUNCTION__, '1.3', "Enqueue the comment-reply script in your theme's header.php." );
     455        _deprecated_function( __FUNCTION__, '1.5', "Enqueue the comment-reply script in your theme's header.php." );
    456456        if ( is_singular() && bp_is_blog_page() && get_option( 'thread_comments' ) )
    457457            wp_enqueue_script( 'comment-reply' );
Note: See TracChangeset for help on using the changeset viewer.