Changeset 4907 for trunk/bp-core/deprecated/1.5.php
- Timestamp:
- 07/30/2011 02:00:16 PM (15 years ago)
- File:
-
- 1 moved
-
trunk/bp-core/deprecated/1.5.php (moved) (moved from trunk/bp-core/deprecated/1.3.php) (29 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/deprecated/1.5.php
r4905 r4907 5 5 * @package BuddyPress 6 6 * @subpackage Core 7 * @deprecated Since 1. 37 * @deprecated Since 1.5 8 8 */ 9 9 … … 26 26 * Use is_multisite() instead. 27 27 * 28 * @deprecated 1. 328 * @deprecated 1.5 29 29 * @deprecated Use is_multisite() 30 30 */ 31 31 function bp_core_is_multisite() { 32 _deprecated_function( __FUNCTION__, '1. 3', 'is_multisite()' );32 _deprecated_function( __FUNCTION__, '1.5', 'is_multisite()' ); 33 33 return is_multisite(); 34 34 } … … 37 37 * bp_core_is_main_site 38 38 * 39 * Checks if current blog is root blog of site. Deprecated in 1. 3.40 * 41 * @deprecated 1. 339 * Checks if current blog is root blog of site. Deprecated in 1.5. 40 * 41 * @deprecated 1.5 42 42 * @deprecated Use is_main_site() 43 43 * @package BuddyPress … … 47 47 */ 48 48 function 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()' ); 50 50 return is_main_site( $blog_id ); 51 51 } … … 55 55 /** 56 56 * 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. 3in favour of a WP core function.58 * 59 * @deprecated 1. 357 * that allowed positioning of menus. Deprecated in 1.5 in favour of a WP core function. 58 * 59 * @deprecated 1.5 60 60 * @deprecated Use add_menu_page(). 61 61 * @since 1.1 … … 75 75 extract( $r, EXTR_SKIP ); 76 76 77 _deprecated_function( __FUNCTION__, '1. 3', 'Use add_menu_page()' );77 _deprecated_function( __FUNCTION__, '1.5', 'Use add_menu_page()' ); 78 78 return add_menu_page( $page_title, $menu_title, $capability, $file, $function, $icon_url, $position ); 79 79 } … … 82 82 83 83 function bp_is_activity_permalink() { 84 _deprecated_function( __FUNCTION__, '1. 3', 'bp_is_single_activity' );84 _deprecated_function( __FUNCTION__, '1.5', 'bp_is_single_activity' ); 85 85 bp_is_single_activity(); 86 86 } … … 89 89 90 90 function bp_core_get_wp_profile() { 91 _deprecated_function( __FUNCTION__, '1. 3' );91 _deprecated_function( __FUNCTION__, '1.5' ); 92 92 93 93 global $bp; … … 161 161 162 162 function bp_is_home() { 163 _deprecated_function( __FUNCTION__, '1. 3', 'bp_is_my_profile' );163 _deprecated_function( __FUNCTION__, '1.5', 'bp_is_my_profile' ); 164 164 return bp_is_my_profile(); 165 165 } … … 168 168 * Is the user on the front page of the site? 169 169 * 170 * @deprecated 1. 3170 * @deprecated 1.5 171 171 * @deprecated Use is_front_page() 172 172 * @return bool 173 173 */ 174 174 function bp_is_front_page() { 175 _deprecated_function( __FUNCTION__, '1. 3', "is_front_page()" );175 _deprecated_function( __FUNCTION__, '1.5', "is_front_page()" ); 176 176 return is_front_page(); 177 177 } … … 180 180 * Is the front page of the site set to the Activity component? 181 181 * 182 * @deprecated 1. 3182 * @deprecated 1.5 183 183 * @deprecated Use bp_is_component_front_page( 'activity' ) 184 184 * @return bool 185 185 */ 186 186 function 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' )" ); 188 188 return bp_is_component_front_page( 'activity' ); 189 189 } 190 190 191 191 function bp_is_member() { 192 _deprecated_function( __FUNCTION__, '1. 3', 'bp_is_user' );192 _deprecated_function( __FUNCTION__, '1.5', 'bp_is_user' ); 193 193 bp_is_user(); 194 194 } 195 195 196 196 function 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' ); 198 198 bp_loggedin_user_link(); 199 199 } … … 201 201 /** 202 202 * 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. 204 204 * 205 205 * @return bool 206 206 */ 207 207 function bp_search_form_enabled() { 208 _deprecated_function( __FUNCTION__, '1. 3', 'No longer required.' );208 _deprecated_function( __FUNCTION__, '1.5', 'No longer required.' ); 209 209 return apply_filters( 'bp_search_form_enabled', true ); 210 210 } … … 213 213 * Template tag version of bp_get_page_title() 214 214 * 215 * @deprecated 1. 3215 * @deprecated 1.5 216 216 * @deprecated Use wp_title() 217 217 * @since 1.0 … … 221 221 } 222 222 /** 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. 224 224 * Now, just simply use wp_title(). 225 225 * 226 * @deprecated 1. 3226 * @deprecated 1.5 227 227 * @deprecated Use wp_title() 228 228 * @since 1.0 229 229 */ 230 230 function bp_get_page_title() { 231 _deprecated_function( __FUNCTION__, '1. 3', 'wp_title()' );231 _deprecated_function( __FUNCTION__, '1.5', 'wp_title()' ); 232 232 $title = wp_title( '|', false, 'right' ) . get_bloginfo( 'name', 'display' ); 233 233 … … 241 241 * Generate a link to log out. Last used in BP 1.2-beta. You should be using wp_logout_url(). 242 242 * 243 * @deprecated 1. 3243 * @deprecated 1.5 244 244 * @deprecated Use wp_logout_url() 245 245 * @since 1.0 246 246 */ 247 247 function bp_log_out_link() { 248 _deprecated_function( __FUNCTION__, '1. 3', 'wp_logout_url()' );248 _deprecated_function( __FUNCTION__, '1.5', 'wp_logout_url()' ); 249 249 250 250 $logout_link = '<a href="' . wp_logout_url( bp_get_root_domain() ) . '">' . __( 'Log Out', 'buddypress' ) . '</a>'; … … 255 255 * Send an email and a BP notification on receipt of an @-mention in a group 256 256 * 257 * @deprecated 1. 3257 * @deprecated 1.5 258 258 * @deprecated Deprecated in favor of the more general bp_activity_at_message_notification() 259 259 */ … … 261 261 global $bp; 262 262 263 _deprecated_function( __FUNCTION__, '1. 3', 'bp_activity_at_message_notification()' );263 _deprecated_function( __FUNCTION__, '1.5', 'bp_activity_at_message_notification()' ); 264 264 265 265 /* Scan for @username strings in an activity update. Notify each user. */ … … 322 322 323 323 /** 324 * BP 1. 3simplified notification functions a bit324 * BP 1.5 simplified notification functions a bit 325 325 */ 326 326 function 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()' ); 328 328 return BP_Core_Notification::delete_for_user_by_type( $user_id, $component_name, $component_action ); 329 329 } 330 330 331 331 function 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()' ); 333 333 return BP_Core_Notification::delete_for_user_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id ); 334 334 } 335 335 336 336 /** 337 * In BP 1. 3, these functions were renamed for greater consistency337 * In BP 1.5, these functions were renamed for greater consistency 338 338 */ 339 339 function bp_forum_directory_permalink() { 340 _deprecated_function( __FUNCTION__, '1. 3', 'bp_forums_directory_permalink()' );340 _deprecated_function( __FUNCTION__, '1.5', 'bp_forums_directory_permalink()' ); 341 341 bp_forums_directory_permalink(); 342 342 } 343 343 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()' ); 345 345 return bp_get_forums_directory_permalink(); 346 346 } … … 350 350 /** 351 351 * Contains functions which were moved out of BP-Default's functions.php 352 * in BuddyPress 1. 3.353 * 354 * @since 1. 3352 * in BuddyPress 1.5. 353 * 354 * @since 1.5 355 355 */ 356 356 function bp_dtheme_deprecated() { … … 359 359 * In BuddyPress 1.2.x, this function filtered the dropdown on the 360 360 * 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. 3361 * include "Activity Stream." As of 1.5.x, it is no longer required. 362 * 363 * @deprecated 1.5 364 364 * @deprecated No longer required. 365 365 * @param string $page_html A list of pages as a dropdown (select list) … … 369 369 */ 370 370 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." ); 372 372 return $page_html; 373 373 } … … 377 377 /** 378 378 * 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. 3379 * As of 1.5.x, it is no longer required. 380 * 381 * @deprecated 1.5 382 382 * @deprecated No longer required. 383 383 * @param $string $oldvalue Previous value of get_option( 'page_on_front' ) … … 387 387 */ 388 388 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." ); 390 390 if ( !is_admin() || !is_super_admin() ) 391 391 return false; … … 398 398 /** 399 399 * 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. 3400 * As of 1.5.x, it is no longer required. 401 * 402 * @deprecated 1.5 403 403 * @deprecated No longer required. 404 404 * @param string $template Absolute path to the page template … … 407 407 */ 408 408 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." ); 410 410 return $template; 411 411 } … … 415 415 /** 416 416 * 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. 3417 * As of 1.5.x, it is no longer required. 418 * 419 * @deprecated 1.5 420 420 * @deprecated No longer required. 421 421 * @since 1.2 422 422 */ 423 423 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." ); 425 425 } 426 426 endif; … … 429 429 /** 430 430 * 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. 3431 * As of 1.5.x, it is no longer required. 432 * 433 * @deprecated 1.5 434 434 * @deprecated No longer required. 435 435 * @param array $posts Posts as retrieved by WP_Query … … 438 438 */ 439 439 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." ); 441 441 return $posts; 442 442 } … … 446 446 /** 447 447 * 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. 3448 * 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 451 451 * @deprecated Enqueue the comment-reply script in your theme's header.php. 452 452 * @since 1.2 453 453 */ 454 454 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." ); 456 456 if ( is_singular() && bp_is_blog_page() && get_option( 'thread_comments' ) ) 457 457 wp_enqueue_script( 'comment-reply' );
Note: See TracChangeset
for help on using the changeset viewer.