/bp-core/deprecated/1.5.php

  1. <?php 
  2. /** 
  3. * Deprecated Functions 
  4. * 
  5. * @package BuddyPress 
  6. * @subpackage Core 
  7. * @deprecated Since 1.5.0 
  8. */ 
  9.  
  10. // Exit if accessed directly 
  11. defined( 'ABSPATH' ) || exit; 
  12.  
  13. /** Loader ********************************************************************/ 
  14.  
  15. /** 
  16. * @deprecated 1.5.0 
  17. */ 
  18. function bp_setup_root_components() { 
  19. do_action( 'bp_setup_root_components' ); 
  20. add_action( 'bp_init', 'bp_setup_root_components', 6 ); 
  21.  
  22. /** WP Abstraction ************************************************************/ 
  23.  
  24. /** 
  25. * bp_core_is_multisite() 
  26. * 
  27. * This function originally served as a wrapper when WordPress and WordPress MU were separate entities. 
  28. * Use is_multisite() instead. 
  29. * 
  30. * @deprecated 1.5.0 
  31. * @deprecated Use is_multisite() 
  32. * 
  33. * @return bool 
  34. */ 
  35. function bp_core_is_multisite() { 
  36. _deprecated_function( __FUNCTION__, '1.5', 'is_multisite()' ); 
  37. return is_multisite(); 
  38.  
  39. /** 
  40. * bp_core_is_main_site 
  41. * 
  42. * Checks if current blog is root blog of site. Deprecated in 1.5. 
  43. * 
  44. * @deprecated 1.5.0 
  45. * @deprecated Use is_main_site() 
  46. * @package BuddyPress 
  47. * @param int|string $blog_id optional blog id to test (default current blog) 
  48. * @return bool True if not multisite or $blog_id is main site 
  49. * @since 1.2.6 
  50. */ 
  51. function bp_core_is_main_site( $blog_id = '' ) { 
  52. _deprecated_function( __FUNCTION__, '1.5', 'is_main_site()' ); 
  53. return is_main_site( $blog_id ); 
  54.  
  55. if ( !function_exists( 'is_site_admin' ) ) { 
  56. /** 
  57. * WPMU version of is_super_admin() 
  58. * 
  59. * @deprecated 1.5.0 
  60. * @deprecated Use is_super_admin() 
  61. * @param int|bool $user_id Optional. Defaults to logged-in user 
  62. * @return bool True if is super admin 
  63. */ 
  64. function is_site_admin( $user_id = false ) { 
  65. _deprecated_function( __FUNCTION__, '1.5', 'is_super_admin()' ); 
  66. return is_super_admin( $user_id ); 
  67.  
  68. /** Admin ******************************************************************/ 
  69.  
  70. /** 
  71. * In BuddyPress 1.1 - 1.2.x, this function provided a better version of add_menu_page() 
  72. * that allowed positioning of menus. Deprecated in 1.5 in favour of a WP core function. 
  73. * 
  74. * @deprecated 1.5.0 
  75. * @deprecated Use add_menu_page(). 
  76. * @since 1.1.0 
  77. * 
  78. * @return string 
  79. */ 
  80. function bp_core_add_admin_menu_page( $args = '' ) { 
  81. global $_registered_pages, $admin_page_hooks, $menu; 
  82.  
  83. _deprecated_function( __FUNCTION__, '1.5', 'Use add_menu_page()' ); 
  84.  
  85. $defaults = array( 
  86. 'access_level' => 2,  
  87. 'file' => false,  
  88. 'function' => false,  
  89. 'icon_url' => false,  
  90. 'menu_title' => '',  
  91. 'page_title' => '',  
  92. 'position' => 100 
  93. ); 
  94.  
  95. $r = wp_parse_args( $args, $defaults ); 
  96. extract( $r, EXTR_SKIP ); 
  97.  
  98. $file = plugin_basename( $file ); 
  99. $hookname = get_plugin_page_hookname( $file, '' ); 
  100.  
  101. $admin_page_hooks[$file] = sanitize_title( $menu_title ); 
  102.  
  103. if ( !empty( $function ) && !empty ( $hookname ) ) 
  104. add_action( $hookname, $function ); 
  105.  
  106. if ( empty( $icon_url ) ) 
  107. $icon_url = 'images/generic.png'; 
  108. elseif ( is_ssl() && 0 === strpos( $icon_url, 'http://' ) ) 
  109. $icon_url = 'https://' . substr( $icon_url, 7 ); 
  110.  
  111. do { 
  112. $position++; 
  113. } while ( !empty( $menu[$position] ) ); 
  114.  
  115. $menu[$position] = array ( $menu_title, $access_level, $file, $page_title, 'menu-top ' . $hookname, $hookname, $icon_url ); 
  116. $_registered_pages[$hookname] = true; 
  117.  
  118. return $hookname; 
  119. /** Activity ******************************************************************/ 
  120.  
  121. /** 
  122. * @deprecated 1.5.0 
  123. */ 
  124. function bp_is_activity_permalink() { 
  125. _deprecated_function( __FUNCTION__, '1.5', 'bp_is_single_activity' ); 
  126. bp_is_single_activity(); 
  127.  
  128. /** Core **********************************************************************/ 
  129.  
  130. /** 
  131. * @deprecated 1.5.0 
  132. */ 
  133. function bp_core_get_wp_profile() { 
  134. _deprecated_function( __FUNCTION__, '1.5' ); 
  135.  
  136. $ud = get_userdata( bp_displayed_user_id() ); ?> 
  137.  
  138. <div class="bp-widget wp-profile"> 
  139. <h4><?php _e( 'My Profile', 'buddypress' ) ?></h4> 
  140.  
  141. <table class="wp-profile-fields"> 
  142.  
  143. <?php if ( $ud->display_name ) : ?> 
  144.  
  145. <tr id="wp_displayname"> 
  146. <td class="label"><?php _e( 'Name', 'buddypress' ); ?></td> 
  147. <td class="data"><?php echo $ud->display_name; ?></td> 
  148. </tr> 
  149.  
  150. <?php endif; ?> 
  151.  
  152. <?php if ( $ud->user_description ) : ?> 
  153.  
  154. <tr id="wp_desc"> 
  155. <td class="label"><?php _e( 'About Me', 'buddypress' ); ?></td> 
  156. <td class="data"><?php echo $ud->user_description; ?></td> 
  157. </tr> 
  158.  
  159. <?php endif; ?> 
  160.  
  161. <?php if ( $ud->user_url ) : ?> 
  162.  
  163. <tr id="wp_website"> 
  164. <td class="label"><?php _e( 'Website', 'buddypress' ); ?></td> 
  165. <td class="data"><?php echo make_clickable( $ud->user_url ); ?></td> 
  166. </tr> 
  167.  
  168. <?php endif; ?> 
  169.  
  170. <?php if ( $ud->jabber ) : ?> 
  171.  
  172. <tr id="wp_jabber"> 
  173. <td class="label"><?php _e( 'Jabber', 'buddypress' ); ?></td> 
  174. <td class="data"><?php echo $ud->jabber; ?></td> 
  175. </tr> 
  176.  
  177. <?php endif; ?> 
  178.  
  179. <?php if ( $ud->aim ) : ?> 
  180.  
  181. <tr id="wp_aim"> 
  182. <td class="label"><?php _e( 'AOL Messenger', 'buddypress' ); ?></td> 
  183. <td class="data"><?php echo $ud->aim; ?></td> 
  184. </tr> 
  185.  
  186. <?php endif; ?> 
  187.  
  188. <?php if ( $ud->yim ) : ?> 
  189.  
  190. <tr id="wp_yim"> 
  191. <td class="label"><?php _e( 'Yahoo Messenger', 'buddypress' ); ?></td> 
  192. <td class="data"><?php echo $ud->yim; ?></td> 
  193. </tr> 
  194.  
  195. <?php endif; ?> 
  196.  
  197. </table> 
  198. </div> 
  199.  
  200. <?php 
  201.  
  202. /** 
  203. * @deprecated 1.5.0 
  204. * @deprecated Use bp_is_my_profile() 
  205. */ 
  206. function bp_is_home() { 
  207. _deprecated_function( __FUNCTION__, '1.5', 'bp_is_my_profile' ); 
  208. return bp_is_my_profile(); 
  209.  
  210. /** 
  211. * Is the user on the front page of the site? 
  212. * 
  213. * @deprecated 1.5.0 
  214. * @deprecated Use is_front_page() 
  215. * @return bool 
  216. */ 
  217. function bp_is_front_page() { 
  218. _deprecated_function( __FUNCTION__, '1.5', "is_front_page()" ); 
  219. return is_front_page(); 
  220.  
  221. /** 
  222. * Is the front page of the site set to the Activity component? 
  223. * 
  224. * @deprecated 1.5.0 
  225. * @deprecated Use bp_is_component_front_page( 'activity' ) 
  226. * @return bool 
  227. */ 
  228. function bp_is_activity_front_page() { 
  229. _deprecated_function( __FUNCTION__, '1.5', "bp_is_component_front_page( 'activity' )" ); 
  230. return bp_is_component_front_page( 'activity' ); 
  231.  
  232. /** 
  233. * @deprecated 1.5.0 
  234. * @deprecated use bp_is_user() 
  235. */ 
  236. function bp_is_member() { 
  237. _deprecated_function( __FUNCTION__, '1.5', 'bp_is_user' ); 
  238. return bp_is_user(); 
  239.  
  240. /** 
  241. * @deprecated 1.5.0 
  242. * @deprecated use bp_loggedin_user_link() 
  243. */ 
  244. function bp_loggedinuser_link() { 
  245. _deprecated_function( __FUNCTION__, '1.5', 'bp_loggedin_user_link' ); 
  246. bp_loggedin_user_link(); 
  247.  
  248. /** 
  249. * Only show the search form if there are available objects to search for. 
  250. * Deprecated in 1.5; not used anymore. 
  251. * 
  252. * @deprecated 1.5.0 
  253. * @return bool 
  254. */ 
  255. function bp_search_form_enabled() { 
  256. _deprecated_function( __FUNCTION__, '1.5', 'No longer required.' ); 
  257. return apply_filters( 'bp_search_form_enabled', true ); 
  258.  
  259. /** 
  260. * Template tag version of bp_get_page_title() 
  261. * 
  262. * @deprecated 1.5.0 
  263. * @deprecated Use wp_title() 
  264. * @since 1.0.0 
  265. */ 
  266. function bp_page_title() { 
  267. echo bp_get_page_title(); 
  268. /** 
  269. * Prior to BuddyPress 1.5, this was used to generate the page's <title> text. 
  270. * Now, just simply use wp_title(). 
  271. * 
  272. * @deprecated 1.5.0 
  273. * @deprecated Use wp_title() 
  274. * @since 1.0.0 
  275. * 
  276. * @return string 
  277. */ 
  278. function bp_get_page_title() { 
  279. _deprecated_function( __FUNCTION__, '1.5', 'wp_title()' ); 
  280. $title = wp_title( '|', false, 'right' ) . get_bloginfo( 'name', 'display' ); 
  281.  
  282. // Backpat for BP 1.2 filter 
  283. $title = apply_filters( 'bp_page_title', esc_attr( $title ), esc_attr( $title ) ); 
  284.  
  285. return apply_filters( 'bp_get_page_title', $title ); 
  286.  
  287. /** 
  288. * Generate a link to log out. Last used in BP 1.2-beta. You should be using wp_logout_url(). 
  289. * 
  290. * @deprecated 1.5.0 
  291. * @deprecated Use wp_logout_url() 
  292. * @since 1.0.0 
  293. */ 
  294. function bp_log_out_link() { 
  295. _deprecated_function( __FUNCTION__, '1.5', 'wp_logout_url()' ); 
  296.  
  297. $logout_link = '<a href="' . wp_logout_url( bp_get_root_domain() ) . '">' . __( 'Log Out', 'buddypress' ) . '</a>'; 
  298. echo apply_filters( 'bp_logout_link', $logout_link ); 
  299.  
  300. /** 
  301. * Send an email and a BP notification on receipt of an @-mention in a group 
  302. * 
  303. * @deprecated 1.5.0 
  304. * @deprecated Deprecated in favor of the more general bp_activity_at_message_notification() 
  305. */ 
  306. function groups_at_message_notification( $content, $poster_user_id, $group_id, $activity_id ) { 
  307. _deprecated_function( __FUNCTION__, '1.5', 'bp_activity_at_message_notification()' ); 
  308.  
  309. /** Scan for @username strings in an activity update. Notify each user. */ 
  310. $pattern = '/[@]+([A-Za-z0-9-_\.@]+)/'; 
  311. preg_match_all( $pattern, $content, $usernames ); 
  312.  
  313. /** Make sure there's only one instance of each username */ 
  314. if ( !$usernames = array_unique( $usernames[1] ) ) 
  315. return false; 
  316.  
  317. $group = new BP_Groups_Group( $group_id ); 
  318.  
  319. foreach( (array) $usernames as $username ) { 
  320. if ( !$receiver_user_id = bp_core_get_userid( $username ) ) 
  321. continue; 
  322.  
  323. /** Check the user is a member of the group before sending the update. */ 
  324. if ( !groups_is_user_member( $receiver_user_id, $group_id ) ) 
  325. continue; 
  326.  
  327. // Now email the user with the contents of the message (if they have enabled email notifications) 
  328. if ( 'no' != bp_get_user_meta( $receiver_user_id, 'notification_activity_new_mention', true ) ) { 
  329. $poster_name = bp_core_get_user_displayname( $poster_user_id ); 
  330.  
  331. $message_link = bp_activity_get_permalink( $activity_id ); 
  332. $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings'; 
  333. $settings_link = bp_core_get_user_domain( $receiver_user_id ) . $settings_slug . '/notifications/'; 
  334.  
  335. $poster_name = stripslashes( $poster_name ); 
  336. $content = bp_groups_filter_kses( stripslashes( $content ) ); 
  337.  
  338. // Set up and send the message 
  339. $ud = bp_core_get_core_userdata( $receiver_user_id ); 
  340. $to = $ud->user_email; 
  341. $subject = bp_get_email_subject( array( 'text' => sprintf( __( '%1$s mentioned you in the group "%2$s"', 'buddypress' ), $poster_name, $group->name ) ) ); 
  342.  
  343. $message = sprintf( __( 
  344. '%1$s mentioned you in the group "%2$s": 
  345.  
  346. "%3$s" 
  347.  
  348. To view and respond to the message, log in and visit: %4$s 
  349.  
  350. --------------------- 
  351. ', 'buddypress' ), $poster_name, $group->name, $content, $message_link ); 
  352.  
  353. /** Send the message */ 
  354. $to = apply_filters( 'groups_at_message_notification_to', $to ); 
  355. $subject = apply_filters( 'groups_at_message_notification_subject', $subject, $group, $poster_name ); 
  356. $message = apply_filters( 'groups_at_message_notification_message', $message, $group, $poster_name, $content, $message_link, $settings_link ); 
  357.  
  358. wp_mail( $to, $subject, $message ); 
  359.  
  360. do_action( 'bp_groups_sent_mention_email', $usernames, $subject, $message, $content, $poster_user_id, $group_id, $activity_id ); 
  361.  
  362. /** 
  363. * BP 1.5 simplified notification functions a bit 
  364. * @deprecated 1.5.0 
  365. * 
  366. * @return mixed 
  367. */ 
  368. function bp_core_delete_notifications_for_user_by_type( $user_id, $component_name, $component_action ) { 
  369. _deprecated_function( __FUNCTION__, '1.5', 'bp_core_delete_notifications_by_type()' ); 
  370. return BP_Core_Notification::delete_for_user_by_type( $user_id, $component_name, $component_action ); 
  371.  
  372. /** 
  373. * @return mixed 
  374. */ 
  375. function bp_core_delete_notifications_for_user_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false ) { 
  376. _deprecated_function( __FUNCTION__, '1.5', 'bp_core_delete_notifications_by_item_id()' ); 
  377. return BP_Core_Notification::delete_for_user_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id ); 
  378.  
  379. /** 
  380. * In BP 1.5, these functions were renamed for greater consistency 
  381. * @deprecated 1.5.0 
  382. */ 
  383. function bp_forum_directory_permalink() { 
  384. _deprecated_function( __FUNCTION__, '1.5', 'bp_forums_directory_permalink()' ); 
  385. bp_forums_directory_permalink(); 
  386. function bp_get_forum_directory_permalink() { 
  387. _deprecated_function( __FUNCTION__, '1.5', 'bp_get_forums_directory_permalink()' ); 
  388. return bp_get_forums_directory_permalink(); 
  389.  
  390. /** 
  391. * Last used by core in BP 1.1. The markup was merged into DTheme's header.php template. 
  392. * @deprecated 1.5.0 
  393. */ 
  394. function bp_search_form() { 
  395. _deprecated_function( __FUNCTION__, '1.1', 'No longer required.' ); 
  396.  
  397. $form = ' 
  398. <form action="' . bp_search_form_action() . '" method="post" id="search-form"> 
  399. <input type="text" id="search-terms" name="search-terms" value="" /> 
  400. ' . bp_search_form_type_select() . ' 
  401.  
  402. <input type="submit" name="search-submit" id="search-submit" value="' . __( 'Search', 'buddypress' ) . '" /> 
  403. ' . wp_nonce_field( 'bp_search_form' ) . ' 
  404. </form> 
  405. '; 
  406.  
  407. echo apply_filters( 'bp_search_form', $form ); 
  408.  
  409. /** 
  410. * Some _is_ function had their names normalized 
  411. * @deprecated 1.5.0 
  412. */ 
  413. function bp_is_profile_edit() { 
  414. _deprecated_function( __FUNCTION__, '1.5', 'bp_is_user_profile_edit()' ); 
  415. return bp_is_user_profile_edit(); 
  416.  
  417. /** 
  418. * @deprecated 1.5.0 
  419. */ 
  420. function bp_is_change_avatar() { 
  421. _deprecated_function( __FUNCTION__, '1.5', 'bp_is_user_change_avatar()' ); 
  422. return bp_is_user_change_avatar(); 
  423.  
  424. /** 
  425. * @deprecated 1.5.0 
  426. */ 
  427. function bp_is_friend_requests() { 
  428. _deprecated_function( __FUNCTION__, '1.5', 'bp_is_user_friend_requests()' ); 
  429. return bp_is_user_friend_requests(); 
  430.  
  431. /** 
  432. * Checks to see if a component's URL should be in the root, not under a member page: 
  433. * eg: http://example.com/groups/the-group NOT http://example.com/members/andy/groups/the-group 
  434. * You should be using bp_is_root_component(). 
  435. * 
  436. * @deprecated 1.5.0 
  437. * @deprecated bp_is_root_component() 
  438. * @return bool True if root component, else false. 
  439. */ 
  440. function bp_core_is_root_component( $component_name ) { 
  441. _deprecated_function( __FUNCTION__, '1.5', 'bp_is_root_component()' ); 
  442. return bp_is_root_component( $component_name ); 
  443.  
  444. /** Theme *********************************************************************/ 
  445.  
  446. /** 
  447. * Contains functions which were moved out of BP-Default's functions.php 
  448. * in BuddyPress 1.5. 
  449. * 
  450. * @deprecated 1.5.0 
  451. * @since 1.5.0 
  452. */ 
  453. function bp_dtheme_deprecated() { 
  454. if ( !function_exists( 'bp_dtheme_wp_pages_filter' ) ) : 
  455. /** 
  456. * In BuddyPress 1.2.x, this function filtered the dropdown on the 
  457. * Settings > Reading screen for selecting the page to show on front to 
  458. * include "Activity Stream." As of 1.5.x, it is no longer required. 
  459. * 
  460. * @deprecated 1.5.0 
  461. * @deprecated No longer required. 
  462. * @param string $page_html A list of pages as a dropdown (select list) 
  463. * @return string 
  464. * @see wp_dropdown_pages() 
  465. * @since 1.2.0 
  466. */ 
  467. function bp_dtheme_wp_pages_filter( $page_html ) { 
  468. _deprecated_function( __FUNCTION__, '1.5', "No longer required." ); 
  469. return $page_html; 
  470. endif; 
  471.  
  472. if ( !function_exists( 'bp_dtheme_page_on_front_update' ) ) : 
  473. /** 
  474. * In BuddyPress 1.2.x, this function hijacked the saving of page on front setting to save the activity stream setting. 
  475. * As of 1.5.x, it is no longer required. 
  476. * 
  477. * @deprecated 1.5.0 
  478. * @deprecated No longer required. 
  479. * @param string $oldvalue Previous value of get_option( 'page_on_front' ) 
  480. * @param string $oldvalue New value of get_option( 'page_on_front' ) 
  481. * @return bool|string 
  482. * @since 1.2.0 
  483. */ 
  484. function bp_dtheme_page_on_front_update( $oldvalue, $newvalue ) { 
  485. _deprecated_function( __FUNCTION__, '1.5', "No longer required." ); 
  486. if ( !is_admin() || !bp_current_user_can( 'bp_moderate' ) ) 
  487. return false; 
  488.  
  489. return $oldvalue; 
  490. endif; 
  491.  
  492. if ( !function_exists( 'bp_dtheme_page_on_front_template' ) ) : 
  493. /** 
  494. * In BuddyPress 1.2.x, this function loaded the activity stream template if the front page display settings allow. 
  495. * As of 1.5.x, it is no longer required. 
  496. * 
  497. * @deprecated 1.5.0 
  498. * @deprecated No longer required. 
  499. * @param string $template Absolute path to the page template 
  500. * @return string 
  501. * @since 1.2.0 
  502. */ 
  503. function bp_dtheme_page_on_front_template( $template ) { 
  504. _deprecated_function( __FUNCTION__, '1.5', "No longer required." ); 
  505. return $template; 
  506. endif; 
  507.  
  508. if ( !function_exists( 'bp_dtheme_fix_get_posts_on_activity_front' ) ) : 
  509. /** 
  510. * In BuddyPress 1.2.x, this forced the page ID as a string to stop the get_posts query from kicking up a fuss. 
  511. * As of 1.5.x, it is no longer required. 
  512. * 
  513. * @deprecated 1.5.0 
  514. * @deprecated No longer required. 
  515. * @since 1.2.0 
  516. */ 
  517. function bp_dtheme_fix_get_posts_on_activity_front() { 
  518. _deprecated_function( __FUNCTION__, '1.5', "No longer required." ); 
  519. endif; 
  520.  
  521. if ( !function_exists( 'bp_dtheme_fix_the_posts_on_activity_front' ) ) : 
  522. /** 
  523. * In BuddyPress 1.2.x, this was used as part of the code that set the activity stream to be on the front page. 
  524. * As of 1.5.x, it is no longer required. 
  525. * 
  526. * @deprecated 1.5.0 
  527. * @deprecated No longer required. 
  528. * @param array $posts Posts as retrieved by WP_Query 
  529. * @return array 
  530. * @since 1.2.5 
  531. */ 
  532. function bp_dtheme_fix_the_posts_on_activity_front( $posts ) { 
  533. _deprecated_function( __FUNCTION__, '1.5', "No longer required." ); 
  534. return $posts; 
  535. endif; 
  536.  
  537. if ( !function_exists( 'bp_dtheme_add_blog_comments_js' ) ) : 
  538. /** 
  539. * In BuddyPress 1.2.x, this added the JavaScript needed for blog comment replies. 
  540. * As of 1.5.x, we recommend that you enqueue the comment-reply JavaScript in your theme's header.php. 
  541. * 
  542. * @deprecated 1.5.0 
  543. * @deprecated Enqueue the comment-reply script in your theme's header.php. 
  544. * @since 1.2.0 
  545. */ 
  546. function bp_dtheme_add_blog_comments_js() { 
  547. _deprecated_function( __FUNCTION__, '1.5', "Enqueue the comment-reply script in your theme's header.php." ); 
  548. if ( is_singular() && bp_is_blog_page() && get_option( 'thread_comments' ) ) 
  549. wp_enqueue_script( 'comment-reply' ); 
  550. endif; 
  551. add_action( 'after_setup_theme', 'bp_dtheme_deprecated', 15 ); 
  552.  
  553. /** 
  554. * In BP 1.5, the Settings functions were moved out of the Core and Members 
  555. * components, and moved into a new Settings component. This function is no 
  556. * longer needed as the nav structure is set up by the {@link BP_Component} class. 
  557. * 
  558. * @deprecated 1.5.0 
  559. * @since 1.6.0 
  560. */ 
  561. function bp_core_add_settings_nav() { 
  562. _deprecated_function( __FUNCTION__, '1.5' ); 
  563.  
  564. /** 
  565. * In BP 1.5, the Settings functions were moved out of the Core and Members 
  566. * components, and moved into a new Settings component. This function is no 
  567. * longer needed as new template files for the Settings component were 
  568. * introduced. 
  569. * 
  570. * @deprecated 1.5.0 
  571. * @since 1.6.0 
  572. */ 
  573. function bp_core_screen_general_settings() { 
  574. _deprecated_function( __FUNCTION__, '1.5', 'Moved into theme template' ); 
  575.  
  576. /** 
  577. * In BP 1.5, the Settings functions were moved out of the Core and Members 
  578. * components, and moved into a new Settings component. This function is no 
  579. * longer needed as new template files for the Settings component were 
  580. * introduced. 
  581. * 
  582. * @deprecated 1.5.0 
  583. * @since 1.6.0 
  584. */ 
  585. function bp_core_screen_general_settings_title() { 
  586. _deprecated_function( __FUNCTION__, '1.5', 'Moved into theme template' ); 
  587.  
  588. /** 
  589. * In BP 1.5, the Settings functions were moved out of the Core and Members 
  590. * components, and moved into a new Settings component. This function is no 
  591. * longer needed as new template files for the Settings component were 
  592. * introduced. 
  593. * 
  594. * @deprecated 1.5.0 
  595. * @since 1.6.0 
  596. */ 
  597. function bp_core_screen_general_settings_content() { 
  598. _deprecated_function( __FUNCTION__, '1.5', 'Moved into theme template' ); 
  599.  
  600. /** 
  601. * In BP 1.5, the Settings functions were moved out of the Core and Members 
  602. * components, and moved into a new Settings component. This function is no 
  603. * longer needed as new template files for the Settings component were 
  604. * introduced. 
  605. * 
  606. * @deprecated 1.5.0 
  607. * @since 1.6.0 
  608. */ 
  609. function bp_core_screen_notification_settings() { 
  610. _deprecated_function( __FUNCTION__, '1.5', 'Moved into theme template' ); 
  611.  
  612. /** 
  613. * In BP 1.5, the Settings functions were moved out of the Core and Members 
  614. * components, and moved into a new Settings component. This function is no 
  615. * longer needed as new template files for the Settings component were 
  616. * introduced. 
  617. * 
  618. * @deprecated 1.5.0 
  619. * @since 1.6.0 
  620. */ 
  621. function bp_core_screen_notification_settings_title() { 
  622. _deprecated_function( __FUNCTION__, '1.5', 'Moved into theme template' ); 
  623.  
  624. /** 
  625. * In BP 1.5, the Settings functions were moved out of the Core and Members 
  626. * components, and moved into a new Settings component. This function is no 
  627. * longer needed as new template files for the Settings component were 
  628. * introduced. 
  629. * 
  630. * @deprecated 1.5.0 
  631. * @since 1.6.0 
  632. */ 
  633. function bp_core_screen_notification_settings_content() { 
  634. _deprecated_function( __FUNCTION__, '1.5', 'Moved into theme template' ); 
  635.  
  636. /** 
  637. * In BP 1.5, the Settings functions were moved out of the Core and Members 
  638. * components, and moved into a new Settings component. This function is no 
  639. * longer needed as new template files for the Settings component were 
  640. * introduced. 
  641. * 
  642. * @deprecated 1.5.0 
  643. * @since 1.6.0 
  644. */ 
  645. function bp_core_screen_delete_account() { 
  646. _deprecated_function( __FUNCTION__, '1.5', 'Moved into theme template' ); 
  647.  
  648. /** 
  649. * In BP 1.5, the Settings functions were moved out of the Core and Members 
  650. * components, and moved into a new Settings component. This function is no 
  651. * longer needed as new template files for the Settings component were 
  652. * introduced. 
  653. * 
  654. * @deprecated 1.5.0 
  655. * @since 1.6.0 
  656. */ 
  657. function bp_core_screen_delete_account_title() { 
  658. _deprecated_function( __FUNCTION__, '1.5', 'Moved into theme template' ); 
  659.  
  660. /** 
  661. * In BP 1.5, the Settings functions were moved out of the Core and Members 
  662. * components, and moved into a new Settings component. This function is no 
  663. * longer needed as new template files for the Settings component were 
  664. * introduced. 
  665. * 
  666. * @deprecated 1.5.0 
  667. * @since 1.6.0 
  668. */ 
  669. function bp_core_screen_delete_account_content() { 
  670. _deprecated_function( __FUNCTION__, '1.5', 'Moved into theme template' ); 
.