Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/19/2011 11:15:29 PM (16 years ago)
Author:
djpaul
Message:

Move bp-default deprecated functions out of functions.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/functions.php

    r3745 r3748  
    626626add_action( 'comment_form', 'bp_dtheme_after_comment_form' );
    627627endif;
    628 
    629 // Everything beyond this point is deprecated as of BuddyPress 1.3. This will be removed in a future version.
    630 
    631 if ( BP_VERSION < 1.3 ) :
    632 
    633 /**
    634  * In BuddyPress 1.2.x, this function filtered the dropdown on the Settings > Reading screen for selecting
    635  * the page to show on front to include "Activity Stream."
    636  * As of 1.3.x, it is no longer required.
    637  *
    638  * @deprecated 1.3
    639  * @deprecated No longer required.
    640  * @param string $page_html A list of pages as a dropdown (select list)
    641  * @return string
    642  * @see wp_dropdown_pages()
    643  * @since 1.2
    644  */
    645 function bp_dtheme_wp_pages_filter( $page_html ) {
    646         _deprecated_function( __FUNCTION__, '1.3', "No longer required." );
    647         return $page_html;
    648 }
    649 
    650 /**
    651  * In BuddyPress 1.2.x, this function hijacked the saving of page on front setting to save the activity stream setting.
    652  * As of 1.3.x, it is no longer required.
    653  *
    654  * @deprecated 1.3
    655  * @deprecated No longer required.
    656  * @param $string $oldvalue Previous value of get_option( 'page_on_front' )
    657  * @param $string $oldvalue New value of get_option( 'page_on_front' )
    658  * @return string
    659  * @since 1.2
    660  */
    661 function bp_dtheme_page_on_front_update( $oldvalue, $newvalue ) {
    662         _deprecated_function( __FUNCTION__, '1.3', "No longer required." );
    663         if ( !is_admin() || !is_super_admin() )
    664                 return false;
    665 
    666         return $oldvalue;
    667 }
    668 
    669 /**
    670  * In BuddyPress 1.2.x, this function loaded the activity stream template if the front page display settings allow.
    671  * As of 1.3.x, it is no longer required.
    672  *
    673  * @deprecated 1.3
    674  * @deprecated No longer required.
    675  * @param string $template Absolute path to the page template
    676  * @return string
    677  * @since 1.2
    678  */
    679 function bp_dtheme_page_on_front_template( $template ) {
    680         _deprecated_function( __FUNCTION__, '1.3', "No longer required." );
    681         return $template;
    682 }
    683 
    684 /**
    685  * In BuddyPress 1.2.x, this forced the page ID as a string to stop the get_posts query from kicking up a fuss.
    686  * As of 1.3.x, it is no longer required.
    687  *
    688  * @deprecated 1.3
    689  * @deprecated No longer required.
    690  * @since 1.2
    691  */
    692 function bp_dtheme_fix_get_posts_on_activity_front() {
    693         _deprecated_function( __FUNCTION__, '1.3', "No longer required." );
    694 }
    695 
    696 /**
    697  * In BuddyPress 1.2.x, this was used as part of the code that set the activity stream to be on the front page.
    698  * As of 1.3.x, it is no longer required.
    699  *
    700  * @deprecated 1.3
    701  * @deprecated No longer required.
    702  * @param array $posts Posts as retrieved by WP_Query
    703  * @return array
    704  * @since 1.2.5
    705  */
    706 function bp_dtheme_fix_the_posts_on_activity_front( $posts ) {
    707         _deprecated_function( __FUNCTION__, '1.3', "No longer required." );
    708         return $posts;
    709 }
    710 
    711 /**
    712  * In BuddyPress 1.2.x, this added the javascript needed for blog comment replies.
    713  * As of 1.3.x, we recommend that you enqueue the comment-reply javascript in your theme's header.php.
    714  *
    715  * @deprecated 1.3
    716  * @deprecated Enqueue the comment-reply script in your theme's header.php.
    717  * @since 1.2
    718  */
    719 function bp_dtheme_add_blog_comments_js() {
    720         _deprecated_function( __FUNCTION__, '1.3', "Enqueue the comment-reply script in your theme's header.php." );
    721         if ( is_singular() && bp_is_blog_page() && get_option( 'thread_comments' ) )
    722                 wp_enqueue_script( 'comment-reply' );
    723 }
    724 endif;
    725 
    726628?>
Note: See TracChangeset for help on using the changeset viewer.