/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php

  1. <?php 
  2. /** 
  3. * Deprecated functions from past bbPress versions. You shouldn't use these 
  4. * globals and functions and look for the alternatives instead. The functions 
  5. * and globals will be removed in a later version. 
  6. * 
  7. * @package bbPress 
  8. * @subpackage Deprecated 
  9. */ 
  10.  
  11.  
  12.  
  13. function bb_specialchars( $text, $quotes = 0 ) { 
  14. bb_log_deprecated('function', __FUNCTION__, 'esc_html'); 
  15. return esc_html( $text, $quotes ); 
  16.  
  17. function bb_make_clickable( $ret ) { 
  18. bb_log_deprecated('function', __FUNCTION__, 'make_clickable'); 
  19. return make_clickable( $ret ); 
  20.  
  21. function bb_apply_filters($tag, $string, $filter = true) { 
  22. bb_log_deprecated('function', __FUNCTION__, 'apply_filters'); 
  23. $args = func_get_args(); 
  24. return call_user_func_array('apply_filters', $args); 
  25.  
  26. function bb_add_filter($tag, $function_to_add, $priority = 10) { 
  27. bb_log_deprecated('function', __FUNCTION__, 'add_filter'); 
  28. $args = func_get_args(); 
  29. return call_user_func_array('add_filter', $args); 
  30.  
  31. function bb_remove_filter($tag, $function_to_remove, $priority = 10) { 
  32. bb_log_deprecated('function', __FUNCTION__, 'remove_filter'); 
  33. $args = func_get_args(); 
  34. return call_user_func_array('remove_filter', $args); 
  35.  
  36. function bb_do_action($tag) { 
  37. bb_log_deprecated('function', __FUNCTION__, 'do_action'); 
  38. $args = func_get_args(); 
  39. return call_user_func_array('do_action', $args); 
  40.  
  41. function bb_add_action($tag, $function_to_add, $priority = 10) { 
  42. bb_log_deprecated('function', __FUNCTION__, 'add_action'); 
  43. $args = func_get_args(); 
  44. return call_user_func_array('add_action', $args); 
  45.  
  46. function bb_remove_action($tag, $function_to_remove, $priority = 10) { 
  47. bb_log_deprecated('function', __FUNCTION__, 'remove_action'); 
  48. $args = func_get_args(); 
  49. return call_user_func_array('remove_action', $args); 
  50.  
  51. function bb_add_query_arg() { 
  52. bb_log_deprecated('function', __FUNCTION__, 'add_query_arg'); 
  53. $args = func_get_args(); 
  54. return call_user_func_array('add_query_arg', $args); 
  55.  
  56. function bb_remove_query_arg($key, $query = '') { 
  57. bb_log_deprecated('function', __FUNCTION__, 'remove_query_arg'); 
  58. return remove_query_arg($key, $query); 
  59.  
  60. if ( !function_exists('language_attributes') ) : 
  61. function language_attributes( $xhtml = 0 ) { 
  62. bb_log_deprecated('function', __FUNCTION__, 'bb_language_attributes'); 
  63. bb_language_attributes( $xhtml ); 
  64. endif; 
  65.  
  66. function cast_meta_value( $data ) { 
  67. bb_log_deprecated('function', __FUNCTION__, 'maybe_unserialize'); 
  68. return maybe_unserialize( $data ); 
  69.  
  70. function option( $option ) { 
  71. bb_log_deprecated('function', __FUNCTION__, 'bb_option'); 
  72. return bb_option( $option ); 
  73.  
  74. // Use topic_time 
  75. function topic_date( $format = '', $id = 0 ) { 
  76. bb_log_deprecated('function', __FUNCTION__, 'bb_gmdate_i18n( $format, get_topic_timestamp( $id ) )'); 
  77. echo bb_gmdate_i18n( $format, get_topic_timestamp( $id ) ); 
  78. function get_topic_date( $format = '', $id = 0 ) { 
  79. bb_log_deprecated('function', __FUNCTION__, 'bb_gmdate_i18n( $format, get_topic_timestamp( $id ) )'); 
  80. return bb_gmdate_i18n( $format, get_topic_timestamp( $id ) ); 
  81. function get_topic_timestamp( $id = 0 ) { 
  82. bb_log_deprecated('function', __FUNCTION__, 'bb_gmtstrtotime( $topic->topic_time )'); 
  83. global $topic; 
  84. if ( $id ) 
  85. $topic = get_topic( $id ); 
  86. return bb_gmtstrtotime( $topic->topic_time ); 
  87.  
  88. // Use topic_start_time 
  89. function topic_start_date( $format = '', $id = 0 ) { 
  90. bb_log_deprecated('function', __FUNCTION__, 'bb_gmdate_i18n( $format, get_topic_start_timestamp( $id ) )'); 
  91. echo bb_gmdate_i18n( $format, get_topic_start_timestamp( $id ) ); 
  92. function get_topic_start_timestamp( $id = 0 ) { 
  93. bb_log_deprecated('function', __FUNCTION__, 'bb_gmtstrtotime( $topic->topic_start_time )'); 
  94. global $topic; 
  95. if ( $id ) 
  96. $topic = get_topic( $id ); 
  97. return bb_gmtstrtotime( $topic->topic_start_time ); 
  98.  
  99. // Use bb_post_time 
  100. function post_date( $format ) { 
  101. bb_log_deprecated('function', __FUNCTION__, 'bb_gmdate_i18n( $format, bb_gmtstrtotime( $bb_post->post_time ) )'); 
  102. global $bb_post; 
  103. echo bb_gmdate_i18n( $format, bb_gmtstrtotime( $bb_post->post_time ) ); 
  104. function get_post_timestamp() { 
  105. bb_log_deprecated('function', __FUNCTION__, 'bb_gmtstrtotime( $bb_post->post_time )'); 
  106. global $bb_post; 
  107. return bb_gmtstrtotime( $bb_post->post_time ); 
  108.  
  109. function get_inception() { 
  110. bb_log_deprecated('function', __FUNCTION__, 'bb_get_inception( \'timestamp\' )'); 
  111. return bb_get_inception( 'timestamp' ); 
  112.  
  113. function forum_dropdown( $c = false, $a = false ) { 
  114. bb_log_deprecated('function', __FUNCTION__, 'bb_forum_dropdown'); 
  115. bb_forum_dropdown( $c, $a ); 
  116.  
  117. function get_ids_by_role( $role = 'moderator', $sort = 0, $limit_str = '' ) { 
  118. bb_log_deprecated('function', __FUNCTION__, 'bb_get_ids_by_role'); 
  119. return bb_get_ids_by_role( $role , $sort , $limit_str); 
  120.  
  121. function get_deleted_posts( $page = 1, $limit = false, $status = 1, $topic_status = 0 ) { 
  122. bb_log_deprecated('function', __FUNCTION__, 'no alternative'); 
  123.  
  124. function bozo_posts( $where ) { 
  125. bb_log_deprecated('function', __FUNCTION__, 'bb_bozo_posts'); 
  126. return bb_bozo_posts( $where ); 
  127.  
  128. function bozo_topics( $where ) { 
  129. bb_log_deprecated('function', __FUNCTION__, 'bb_bozo_topics'); 
  130. return bb_bozo_topics( $where ); 
  131.  
  132. function get_bozos( $page = 1 ) { 
  133. bb_log_deprecated('function', __FUNCTION__, 'bb_get_bozos'); 
  134. return bb_get_bozos($page); 
  135.  
  136. function current_user_is_bozo( $topic_id = false ) { 
  137. bb_log_deprecated('function', __FUNCTION__, 'bb_current_user_is_bozo'); 
  138. return bb_current_user_is_bozo( $topic_id ); 
  139.  
  140. function bozo_pre_permalink() { 
  141. bb_log_deprecated('function', __FUNCTION__, 'bb_bozo_pre_permalink'); 
  142. return bb_bozo_pre_permalink(); 
  143.  
  144. function bozo_latest_filter() { 
  145. bb_log_deprecated('function', __FUNCTION__, 'bb_bozo_latest_filter'); 
  146. return bb_bozo_latest_filter(); 
  147.  
  148. function bozo_topic_db_filter() { 
  149. bb_log_deprecated('function', __FUNCTION__, 'bb_bozo_topic_db_filter'); 
  150. return bb_bozo_topic_db_filter(); 
  151.  
  152. function bozo_profile_db_filter() { 
  153. bb_log_deprecated('function', __FUNCTION__, 'bb_bozo_profile_db_filter'); 
  154. return bb_bozo_profile_db_filter(); 
  155.  
  156. function bozo_recount_topics() { 
  157. bb_log_deprecated('function', __FUNCTION__, 'bb_bozo_recount_topics'); 
  158. return bb_bozo_recount_topics(); 
  159.  
  160. function bozo_recount_users() { 
  161. bb_log_deprecated('function', __FUNCTION__, 'bb_bozo_recount_users'); 
  162. return bb_bozo_recount_users(); 
  163.  
  164. function bozo_post_del_class( $status ) { 
  165. bb_log_deprecated('function', __FUNCTION__, 'bb_bozo_post_del_class'); 
  166. return bb_bozo_post_del_class( $status ); 
  167.  
  168. function bozo_add_recount_list() { 
  169. bb_log_deprecated('function', __FUNCTION__, 'bb_bozo_add_recount_list'); 
  170. return bb_bozo_add_recount_list() ; 
  171.  
  172. function bozo_topic_pages_add( $add ) { 
  173. bb_log_deprecated('function', __FUNCTION__, 'bb_bozo_topic_pages_add'); 
  174. return bb_bozo_topic_pages_add( $add ); 
  175.  
  176. function bozo_get_topic_posts( $topic_posts ) { 
  177. bb_log_deprecated('function', __FUNCTION__, 'bb_bozo_get_topic_posts'); 
  178. return bb_bozo_get_topic_posts( $topic_posts ) ; 
  179.  
  180. function bozo_new_post( $post_id ) { 
  181. bb_log_deprecated('function', __FUNCTION__, 'bb_bozo_new_post'); 
  182. return bb_bozo_new_post( $post_id ); 
  183.  
  184. function bozo_pre_post_status( $status, $post_id, $topic_id ) { 
  185. bb_log_deprecated('function', __FUNCTION__, 'bb_bozo_pre_post_status'); 
  186. return bb_bozo_pre_post_status( $status, $post_id, $topic_id ) ; 
  187.  
  188. function bozo_delete_post( $post_id, $new_status, $old_status ) { 
  189. bb_log_deprecated('function', __FUNCTION__, 'bb_bozo_delete_post'); 
  190. return bb_bozo_delete_post( $post_id, $new_status, $old_status ) ; 
  191.  
  192. function bozon( $user_id, $topic_id = 0 ) { 
  193. bb_log_deprecated('function', __FUNCTION__, 'bb_bozon'); 
  194. return bb_bozon( $user_id, $topic_id ) ; 
  195.  
  196. function fermion( $user_id, $topic_id = 0 ) { 
  197. bb_log_deprecated('function', __FUNCTION__, 'bb_fermion'); 
  198. return bb_fermion( $user_id, $topic_id ) ; 
  199.  
  200. function bozo_profile_admin_keys( $a ) { 
  201. bb_log_deprecated('function', __FUNCTION__, 'bb_bozo_profile_admin_keys'); 
  202. return bb_bozo_profile_admin_keys( $a ) ; 
  203. function bozo_add_admin_page() { 
  204. bb_log_deprecated('function', __FUNCTION__, 'bb_bozo_add_admin_page'); 
  205. return bb_bozo_add_admin_page() ; 
  206.  
  207. function bozo_admin_page() { 
  208. bb_log_deprecated('function', __FUNCTION__, 'bb_bozo_admin_page'); 
  209. return bb_bozo_admin_page() ; 
  210.  
  211. function encodeit( $matches ) { 
  212. bb_log_deprecated('function', __FUNCTION__, 'bb_encodeit'); 
  213. return bb_encodeit( $matches ) ; 
  214.  
  215. function decodeit( $matches ) { 
  216. bb_log_deprecated('function', __FUNCTION__, 'bb_decodeit'); 
  217. return bb_decodeit( $matches ) ; 
  218.  
  219. function code_trick( $text ) { 
  220. bb_log_deprecated('function', __FUNCTION__, 'bb_code_trick'); 
  221. return bb_code_trick( $text ) ; 
  222.  
  223. function code_trick_reverse( $text ) { 
  224. bb_log_deprecated('function', __FUNCTION__, 'bb_code_trick_reverse'); 
  225. return bb_code_trick_reverse( $text ) ; 
  226.  
  227. function encode_bad( $text ) { 
  228. bb_log_deprecated('function', __FUNCTION__, 'bb_encode_bad'); 
  229. return bb_encode_bad( $text ) ; 
  230.  
  231. function user_sanitize( $text, $strict = false ) { 
  232. bb_log_deprecated('function', __FUNCTION__, 'sanitize_user'); 
  233. return sanitize_user( $text, $strict ); 
  234.  
  235. function bb_user_sanitize( $text, $strict = false ) { 
  236. bb_log_deprecated('function', __FUNCTION__, 'sanitize_user'); 
  237. return sanitize_user( $text, $strict ); 
  238.  
  239. function utf8_cut( $utf8_string, $length ) { 
  240. bb_log_deprecated('function', __FUNCTION__, 'bb_utf8_cut'); 
  241. return bb_utf8_cut( $utf8_string, $length ) ; 
  242.  
  243. function tag_sanitize( $tag ) { 
  244. bb_log_deprecated('function', __FUNCTION__, 'bb_tag_sanitize'); 
  245. return bb_tag_sanitize( $tag ) ; 
  246.  
  247. function sanitize_with_dashes( $text, $length = 200 ) { // Multibyte aware 
  248. bb_log_deprecated('function', __FUNCTION__, 'bb_sanitize_with_dashes'); 
  249. return bb_sanitize_with_dashes( $text, $length ) ; 
  250.  
  251. function bb_make_feed( $link ) { 
  252. bb_log_deprecated('function', __FUNCTION__, 'no aternative'); 
  253. return trim( $link ); 
  254.  
  255. function show_context( $term, $text ) { 
  256. bb_log_deprecated('function', __FUNCTION__, 'bb_show_context'); 
  257. return bb_show_context( $term, $text ); 
  258.  
  259. function closed_title( $title ) { 
  260. bb_log_deprecated('function', __FUNCTION__, 'bb_closed_label'); 
  261. return bb_closed_label( $title ); 
  262.  
  263. // Closed label now applied using bb_topic_labels filters 
  264. function bb_closed_title( $title ) { 
  265. bb_log_deprecated('function', __FUNCTION__, 'bb_closed_label'); 
  266. return bb_closed_label( $title ); 
  267.  
  268. function make_link_view_all( $link ) { 
  269. bb_log_deprecated('function', __FUNCTION__, 'bb_make_link_view_all'); 
  270. return bb_make_link_view_all( $link ); 
  271.  
  272. function remove_topic_tag( $tag_id, $user_id, $topic_id ) { 
  273. bb_log_deprecated('function', __FUNCTION__, 'bb_remove_topic_tag'); 
  274. return bb_remove_topic_tag( $tag_id, $user_id, $topic_id ); 
  275.  
  276. function add_topic_tag( $topic_id, $tag ) { 
  277. bb_log_deprecated('function', __FUNCTION__, 'bb_add_topic_tag'); 
  278. return bb_add_topic_tag( $topic_id, $tag ); 
  279.  
  280. function add_topic_tags( $topic_id, $tags ) { 
  281. bb_log_deprecated('function', __FUNCTION__, 'bb_add_topic_tags'); 
  282. return bb_add_topic_tags( $topic_id, $tags ); 
  283.  
  284. function create_tag( $tag ) { 
  285. bb_log_deprecated('function', __FUNCTION__, 'bb_create_tag'); 
  286. return bb_create_tag( $tag ); 
  287.  
  288. function destroy_tag( $tag_id, $recount_topics = true ) { 
  289. bb_log_deprecated('function', __FUNCTION__, 'bb_destroy_tag'); 
  290. return bb_destroy_tag( $tag_id, $recount_topics ); 
  291.  
  292. if ( !function_exists( 'get_tag_id' ) ) : 
  293. function get_tag_id( $tag ) { 
  294. bb_log_deprecated('function', __FUNCTION__, 'bb_get_tag_id'); 
  295. return bb_get_tag_id( $tag ); 
  296. endif; 
  297.  
  298. if ( !function_exists( 'get_tag' ) ) : 
  299. function get_tag( $tag_id, $user_id = 0, $topic_id = 0 ) { 
  300. bb_log_deprecated('function', __FUNCTION__, 'bb_get_tag'); 
  301. return bb_get_tag( $tag_id, $user_id, $topic_id ); 
  302. endif; 
  303.  
  304. if ( !function_exists( 'get_tag_by_name' ) ) : 
  305. function get_tag_by_name( $tag ) { 
  306. bb_log_deprecated('function', __FUNCTION__, 'bb_get_tag_by_name'); 
  307. return bb_get_tag( $tag ); 
  308. endif; 
  309.  
  310. function get_topic_tags( $topic_id ) { 
  311. bb_log_deprecated('function', __FUNCTION__, 'bb_get_topic_tags'); 
  312. return bb_get_topic_tags( $topic_id ); 
  313.  
  314. function get_user_tags( $topic_id, $user_id ) { 
  315. bb_log_deprecated('function', __FUNCTION__, 'bb_get_user_tags'); 
  316. return bb_get_user_tags( $topic_id, $user_id ); 
  317.  
  318. function get_other_tags( $topic_id, $user_id ) { 
  319. bb_log_deprecated('function', __FUNCTION__, 'bb_get_other_tags'); 
  320. return bb_get_other_tags( $topic_id, $user_id ); 
  321.  
  322. function get_public_tags( $topic_id ) { 
  323. bb_log_deprecated('function', __FUNCTION__, 'bb_get_public_tags'); 
  324. return bb_get_public_tags( $topic_id ); 
  325.  
  326. function get_tagged_topic_ids( $tag_id ) { 
  327. bb_log_deprecated('function', __FUNCTION__, 'bb_get_tagged_topic_ids'); 
  328. return bb_get_tagged_topic_ids( $tag_id ); 
  329.  
  330. if ( !function_exists( 'get_top_tags' ) ) : 
  331. function get_top_tags( $recent = true, $limit = 40 ) { 
  332. bb_log_deprecated('function', __FUNCTION__, 'bb_get_top_tags'); 
  333. return bb_get_top_tags( array( 'number' => $limit ) ); 
  334. endif; 
  335.  
  336. if ( !function_exists( 'get_tag_name' ) ) : 
  337. function get_tag_name( $id = 0 ) { 
  338. bb_log_deprecated('function', __FUNCTION__, 'bb_get_tag_name'); 
  339. return bb_get_tag_name( $id ); 
  340. endif; 
  341.  
  342. if ( !function_exists( 'tag_name' ) ) : 
  343. function tag_name( $id = 0 ) { 
  344. bb_log_deprecated('function', __FUNCTION__, 'bb_tag_name'); 
  345. bb_tag_name( $id ); 
  346. endif; 
  347.  
  348. if ( !function_exists( 'get_tag_rss_link' ) ) : 
  349. function get_tag_rss_link( $id = 0 ) { 
  350. bb_log_deprecated('function', __FUNCTION__, 'bb_get_tag_posts_rss_link'); 
  351. return bb_get_tag_posts_rss_link( $id ); 
  352. endif; 
  353.  
  354. if ( !function_exists( 'tag_rss_link' ) ) : 
  355. function tag_rss_link( $id = 0 ) { 
  356. bb_log_deprecated('function', __FUNCTION__, 'bb_tag_posts_rss_link'); 
  357. bb_tag_posts_rss_link( $id ); 
  358. endif; 
  359.  
  360. if ( !function_exists( 'get_tag_page_link' ) ) : 
  361. function get_tag_page_link() { 
  362. bb_log_deprecated('function', __FUNCTION__, 'bb_get_tag_page_link'); 
  363. bb_get_tag_page_link(); 
  364. endif; 
  365.  
  366. if ( !function_exists( 'tag_page_link' ) ) : 
  367. function tag_page_link() { 
  368. bb_log_deprecated('function', __FUNCTION__, 'bb_tag_page_link'); 
  369. bb_tag_page_link(); 
  370. endif; 
  371.  
  372. if ( !function_exists( 'get_tag_remove_link' ) ) : 
  373. function get_tag_remove_link() { 
  374. bb_log_deprecated('function', __FUNCTION__, 'bb_get_tag_remove_link'); 
  375. bb_get_tag_remove_link(); 
  376. endif; 
  377.  
  378. if ( !function_exists( 'tag_remove_link' ) ) : 
  379. function tag_remove_link() { 
  380. bb_log_deprecated('function', __FUNCTION__, 'bb_tag_remove_link'); 
  381. bb_tag_remove_link(); 
  382. endif; 
  383.  
  384. if ( !function_exists( 'tag_heat_map' ) ) : 
  385. function tag_heat_map( $args = '' ) { 
  386. bb_log_deprecated('function', __FUNCTION__, 'bb_tag_heat_map (with variations to arguments)'); 
  387. $defaults = array( 'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'limit' => 45, 'format' => 'flat' ); 
  388. $args = wp_parse_args( $args, $defaults ); 
  389.  
  390. if ( 1 < $fn = func_num_args() ) : // For back compat 
  391. $args['smallest'] = func_get_arg(0); 
  392. $args['largest'] = func_get_arg(1); 
  393. $args['unit'] = 2 < $fn ? func_get_arg(2) : $unit; 
  394. $args['limit'] = 3 < $fn ? func_get_arg(3) : $limit; 
  395. endif; 
  396.  
  397. bb_tag_heat_map( $args ); 
  398. endif; 
  399.  
  400. function get_bb_location() { 
  401. bb_log_deprecated('function', __FUNCTION__, 'no alternative'); 
  402. $r = bb_get_location(); 
  403. if ( !$r ) 
  404. $r = apply_filters( 'get_bb_location', '' ); // Deprecated filter 
  405. return $r; 
  406.  
  407. function bb_parse_args( $args, $defaults = '' ) { 
  408. bb_log_deprecated('function', __FUNCTION__, 'wp_parse_args'); 
  409. return wp_parse_args( $args, $defaults ); 
  410.  
  411. if ( !function_exists( 'is_tag' ) ) : 
  412. function is_tag() { 
  413. bb_log_deprecated('function', __FUNCTION__, 'bb_is_tag'); 
  414. return bb_is_tag(); 
  415. endif; 
  416.  
  417. if ( !function_exists( 'is_tags' ) ) : 
  418. function is_tags() { 
  419. bb_log_deprecated('function', __FUNCTION__, 'bb_is_tags'); 
  420. return bb_is_tags(); 
  421. endif; 
  422.  
  423. if ( !function_exists( 'tag_link' ) ) : 
  424. function tag_link() { 
  425. bb_log_deprecated('function', __FUNCTION__, 'bb_tag_link'); 
  426. bb_tag_link(); 
  427. endif; 
  428.  
  429. if ( !function_exists( 'tag_link_base' ) ) : 
  430. function tag_link_base() { 
  431. bb_log_deprecated('function', __FUNCTION__, 'bb_tag_link_base'); 
  432. bb_tag_link_base(); 
  433. endif; 
  434.  
  435. if ( !function_exists( 'get_tag_link' ) ) : 
  436. function get_tag_link() { 
  437. bb_log_deprecated('function', __FUNCTION__, 'bb_get_tag_link'); 
  438. bb_get_tag_link(); 
  439. endif; 
  440.  
  441. if ( !function_exists( 'get_tag_link_base' ) ) : 
  442. function get_tag_link_base() { 
  443. bb_log_deprecated('function', __FUNCTION__, 'bb_get_tag_link_base'); 
  444. bb_get_tag_link_base(); 
  445. endif; 
  446.  
  447. // It's not omnipotent 
  448. function bb_path_to_url( $path ) { 
  449. bb_log_deprecated('function', __FUNCTION__, 'no alternative'); 
  450. return apply_filters( 'bb_path_to_url', bb_convert_path_base( $path, BB_PATH, bb_get_uri(null, null, BB_URI_CONTEXT_TEXT) ), $path ); 
  451.  
  452. // Neither is this one 
  453. function bb_url_to_path( $url ) { 
  454. bb_log_deprecated('function', __FUNCTION__, 'no alternative'); 
  455. return apply_filters( 'bb_url_to_path', bb_convert_path_base( $url, bb_get_uri(null, null, BB_URI_CONTEXT_TEXT), BB_PATH ), $url ); 
  456.  
  457. function bb_convert_path_base( $path, $from_base, $to_base ) { 
  458. bb_log_deprecated('function', __FUNCTION__, 'no alternative'); 
  459. $last_char = $path{strlen($path)-1}; 
  460. if ( '/' != $last_char && '\\' != $last_char ) 
  461. $last_char = ''; 
  462.  
  463. list($from_base, $to_base) = bb_trim_common_path_right($from_base, $to_base); 
  464.  
  465. if ( 0 === strpos( $path, $from_base ) ) 
  466. $r = $to_base . substr($path, strlen($from_base)) . $last_char; 
  467. else 
  468. return false; 
  469.  
  470. $r = str_replace(array('//', '\\\\'), array('/', '\\'), $r); 
  471. $r = preg_replace('|:/([^/])|', '://$1', $r); 
  472.  
  473. return $r; 
  474.  
  475. function bb_trim_common_path_right( $one, $two ) { 
  476. bb_log_deprecated('function', __FUNCTION__, 'no alternative'); 
  477. $root_one = false; 
  478. $root_two = false; 
  479.  
  480. while ( false === $root_one ) { 
  481. $base_one = basename($one); 
  482. $base_two = basename($two); 
  483. if ( !$base_one || !$base_two ) 
  484. break;  
  485. if ( $base_one == $base_two ) { 
  486. $one = dirname($one); 
  487. $two = dirname($two); 
  488. } else { 
  489. $root_one = $one; 
  490. $root_two = $two; 
  491.  
  492. return array($root_one, $root_two); 
  493.  
  494. function deleted_topics( $where ) { 
  495. bb_log_deprecated('function', __FUNCTION__, 'no alternative'); 
  496. return preg_replace( '/(\w+\.)?topic_status = ["\']?0["\']?/', "\\1topic_status = 1", $where); 
  497.  
  498. function no_replies( $where ) { 
  499. bb_log_deprecated('function', __FUNCTION__, 'no alternative'); 
  500. return $where . ' AND topic_posts = 1 '; 
  501.  
  502. function untagged( $where ) { 
  503. bb_log_deprecated('function', __FUNCTION__, 'no alternative'); 
  504. return $where . ' AND tag_count = 0 '; 
  505.  
  506. function get_views() { 
  507. bb_log_deprecated('function', __FUNCTION__, 'bb_get_views'); 
  508. return bb_get_views(); 
  509.  
  510. if ( !function_exists( 'balanceTags' ) ) : 
  511. function balanceTags( $text ) { 
  512. bb_log_deprecated('function', __FUNCTION__, 'force_balance_tags'); 
  513. return force_balance_tags( $text ); 
  514. endif; 
  515.  
  516. // With no extra arguments, converts array of objects into object of arrays 
  517. // With extra arguments corresponding to name of object properties, returns array of arrays: 
  518. // list($a, $b) = bb_pull_cols( $obj_array, 'a', 'b' ); 
  519. function bb_pull_cols( $obj_array ) { 
  520. bb_log_deprecated('function', __FUNCTION__, 'no alternative'); 
  521. $r = new stdClass; 
  522. foreach ( array_keys($obj_array) as $o ) 
  523. foreach ( get_object_vars( $obj_array[$o] ) as $k => $v ) 
  524. $r->{$k}[] = $v; 
  525.  
  526. if ( 1 == func_num_args() ) 
  527. return $r; 
  528.  
  529. $args = func_get_args(); 
  530. $args = array_splice($args, 1); 
  531.  
  532. $a = array(); 
  533. foreach ( $args as $arg ) 
  534. $a[] = $r->$arg; 
  535. return $a; 
  536.  
  537. // $length parameter is deprecated 
  538. function bb_random_pass( $length ) { 
  539. bb_log_deprecated('function', __FUNCTION__, 'bb_generate_password'); 
  540. if ( 12 < (int) $length ) { 
  541. $length = 12; 
  542. return bb_generate_password( $length ); 
  543.  
  544. // Old RSS related functions 
  545. function get_recent_rss_link() { 
  546. bb_log_deprecated('function', __FUNCTION__, 'bb_get_posts_rss_link'); 
  547. return bb_get_posts_rss_link(); 
  548.  
  549. function forum_rss_link( $forum_id = 0 ) { 
  550. bb_log_deprecated('function', __FUNCTION__, 'bb_get_forum_posts_rss_link'); 
  551. bb_forum_posts_rss_link( $forum_id ); 
  552.  
  553. function get_forum_rss_link( $forum_id = 0 ) { 
  554. bb_log_deprecated('function', __FUNCTION__, 'bb_get_forum_posts_rss_link'); 
  555. return bb_get_forum_posts_rss_link( $forum_id ); 
  556.  
  557. function bb_register_activation_hook($file, $function) { 
  558. bb_log_deprecated('function', __FUNCTION__, 'bb_register_plugin_activation_hook'); 
  559. bb_register_plugin_activation_hook($file, $function); 
  560.  
  561. function bb_register_deactivation_hook($file, $function) { 
  562. bb_log_deprecated('function', __FUNCTION__, 'bb_register_plugin_deactivation_hook'); 
  563. bb_register_plugin_deactivation_hook($file, $function); 
  564.  
  565. function bb_enqueue_script( $handle, $src = false, $deps = array(), $ver = false ) { 
  566. bb_log_deprecated('function', __FUNCTION__, 'wp_enqueue_script'); 
  567. wp_enqueue_script( $handle, $src, $deps, $ver ); 
  568.  
  569. function bb_get_user_by_name( $name ) { 
  570. bb_log_deprecated('function', __FUNCTION__, 'bb_get_user'); 
  571. return bb_get_user( $name, array( 'by' => 'login' ) ); 
  572.  
  573. function bb_user_exists( $user ) { 
  574. bb_log_deprecated('function', __FUNCTION__, 'bb_get_user'); 
  575. return bb_get_user( $user ); 
  576.  
  577. function bb_maybe_serialize( $string ) { 
  578. bb_log_deprecated('function', __FUNCTION__, 'maybe_serialize'); 
  579. return maybe_serialize( $string ); 
  580.  
  581. function bb_maybe_unserialize( $string ) { 
  582. bb_log_deprecated('function', __FUNCTION__, 'maybe_unserialize'); 
  583. return maybe_unserialize( $string ); 
  584.  
  585. function bb_get_active_theme_folder() { 
  586. bb_log_deprecated('function', __FUNCTION__, 'bb_get_active_theme_directory'); 
  587. return apply_filters( 'bb_get_active_theme_folder', bb_get_active_theme_directory() ); 
  588.  
  589. function bb_tag_sanitize( $tag ) { 
  590. bb_log_deprecated('function', __FUNCTION__, 'bb_pre_term_slug'); 
  591. return bb_pre_term_slug( $tag ); 
  592.  
  593. function bb_get_tag_by_name( $tag ) { 
  594. bb_log_deprecated('function', __FUNCTION__, 'bb_get_tag'); 
  595. return bb_get_tag( $tag ); 
  596.  
  597. function bb_dbDelta($queries, $execute = true) { 
  598. bb_log_deprecated('function', __FUNCTION__, 'bb_sql_delta'); 
  599. return bb_sql_delta($queries, $execute); 
  600.  
  601. function bb_make_db_current() { 
  602. bb_log_deprecated('function', __FUNCTION__, 'no alternative'); 
  603. return false; 
  604.  
  605. function bb_maybe_add_column( $table_name, $column_name, $create_ddl ) { 
  606. bb_log_deprecated('function', __FUNCTION__, 'no alternative'); 
  607. return false; 
  608.  
  609. class BB_Cache { 
  610. var $use_cache = false; 
  611. var $flush_freq = 100; 
  612. var $flush_time = 172800; // 2 days 
  613.  
  614. function get_user( $user_id, $use_cache = true ) { 
  615. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'bb_get_user'); 
  616. return bb_get_user( $user_id ); 
  617.  
  618. function append_current_user_meta( $user ) { 
  619. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'bb_append_meta'); 
  620. return bb_append_meta( $user, 'user' ); 
  621.  
  622. function append_user_meta( $user ) { 
  623. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'bb_append_meta'); 
  624. return bb_append_meta( $user, 'user' ); 
  625.  
  626. // NOT bbdb::prepared 
  627. function cache_users( $ids, $use_cache = true ) { 
  628. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'bb_cache_users'); 
  629. return bb_cache_users( $ids ); 
  630.  
  631. // NOT bbdb::prepared 
  632. function get_topic( $topic_id, $use_cache = true ) { 
  633. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'get_topic'); 
  634. return get_topic( $topic_id, $use_cache ); 
  635.  
  636. // NOT bbdb::prepared 
  637. function get_thread( $topic_id, $page = 1, $reverse = 0 ) { 
  638. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'get_thread'); 
  639. return get_thread( $topic_id, $page, $reverse ); 
  640.  
  641. // NOT bbdb::prepared 
  642. function cache_posts( $query ) { // soft cache 
  643. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'bb_cache_posts'); 
  644. return bb_cache_posts( $query ); 
  645.  
  646. // NOT bbdb::prepared 
  647. function get_forums() { 
  648. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'bb_get_forums'); 
  649. return bb_get_forums(); 
  650.  
  651. function get_forum( $forum_id ) { 
  652. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'bb_get_forum'); 
  653. return bb_get_forum( $forum_id ); 
  654.  
  655. function read_cache($file) { 
  656. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'no alternative'); 
  657. return false; 
  658.  
  659. function write_cache($file, $data) { 
  660. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'no alternative'); 
  661. return false; 
  662.  
  663. function flush_one( $type, $id = false, $page = 0 ) { 
  664. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'no alternative'); 
  665. return true; 
  666.  
  667. function flush_many( $type, $id, $start = 0 ) { 
  668. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'no alternative'); 
  669. return true; 
  670.  
  671. function flush_old() { 
  672. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'no alternative'); 
  673. return true; 
  674.  
  675. function flush_all() { 
  676. bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'no alternative'); 
  677. return true; 
  678.  
  679.  
  680. function new_topic( $args = null ) { 
  681. bb_log_deprecated( 'function', __FUNCTION__, 'bb_new_topic_link' ); 
  682. bb_new_topic_link( $args ); 
  683.  
  684. function bb_upgrade_1060() { 
  685. bb_log_deprecated( 'function', __FUNCTION__, 'no alternative' ); 
  686.  
  687. if ( !function_exists( 'paginate_links' ) ) : // Deprecated in bbPress not WordPress 
  688. function paginate_links( $args = '' ) { 
  689. bb_log_deprecated( 'function', __FUNCTION__, 'bb_paginate_links' ); 
  690. return bb_paginate_links( $args ); 
  691. endif; 
  692.  
  693. if ( !function_exists('wp_clear_auth_cookie') ) : // Deprecated in bbPress not WordPress 
  694. function wp_clear_auth_cookie() { 
  695. bb_log_deprecated( 'function', __FUNCTION__, 'bb_clear_auth_cookie' ); 
  696. bb_clear_auth_cookie(); 
  697. endif; 
  698.  
  699. if ( !function_exists( 'wp_validate_auth_cookie' ) ) : // Deprecated in bbPress not WordPress 
  700. function wp_validate_auth_cookie( $cookie = '', $scheme = 'auth' ) { 
  701. bb_log_deprecated( 'function', __FUNCTION__, 'bb_validate_auth_cookie' ); 
  702. return bb_validate_auth_cookie( $cookie, $scheme ); 
  703. endif; 
  704.  
  705. if ( !function_exists( 'wp_set_auth_cookie' ) ) : // Deprecated in bbPress not WordPress 
  706. function wp_set_auth_cookie( $user_id, $remember = false, $secure = '' ) { 
  707. bb_log_deprecated( 'function', __FUNCTION__, 'bb_set_auth_cookie' ); 
  708. bb_set_auth_cookie( $user_id, $remember, $secure ); 
  709. endif; 
  710.  
  711. if ( !function_exists( 'wp_salt' ) ) : // Deprecated in bbPress not WordPress 
  712. function wp_salt( $scheme = 'auth' ) { 
  713. bb_log_deprecated( 'function', __FUNCTION__, 'bb_salt' ); 
  714. return bb_salt( $scheme ); 
  715. endif; 
  716.  
  717. if ( !function_exists( 'wp_hash' ) ) : // Deprecated in bbPress not WordPress 
  718. function wp_hash( $data, $scheme = 'auth' ) { 
  719. bb_log_deprecated( 'function', __FUNCTION__, 'bb_hash' ); 
  720. return bb_hash( $data, $scheme ); 
  721. endif; 
  722.  
  723. if ( !function_exists( 'wp_hash_password' ) ) : // Deprecated in bbPress not WordPress 
  724. function wp_hash_password( $password ) { 
  725. bb_log_deprecated( 'function', __FUNCTION__, 'bb_hash_password' ); 
  726. return bb_hash_password( $password ); 
  727. endif; 
  728.  
  729. if ( !function_exists( 'wp_check_password') ) : // Deprecated in bbPress not WordPress 
  730. function wp_check_password( $password, $hash, $user_id = '' ) { 
  731. bb_log_deprecated( 'function', __FUNCTION__, 'bb_check_password' ); 
  732. return bb_check_password( $password, $hash, $user_id ); 
  733. endif; 
  734.  
  735. if ( !function_exists( 'wp_generate_password' ) ) : // Deprecated in bbPress not WordPress 
  736. function wp_generate_password( $length = 12, $special_chars = true ) { 
  737. bb_log_deprecated( 'function', __FUNCTION__, 'bb_generate_password' ); 
  738. return bb_generate_password( $length, $special_chars ); 
  739. endif; 
  740.  
  741. if ( !class_exists( 'WP_User' ) ) : // Deprecated in BackPress not WordPress 
  742. class WP_User extends BP_User { 
  743. function __construct( $id, $name = '' ) { 
  744. return parent::BP_User( $id, $name ); 
  745. function WP_User( $id, $name = '' ) { 
  746. $this->__construct( $id, $name ); 
  747. endif; 
  748.  
  749. function bb_sql_get_column_definition( $column_data ) { 
  750. require_once( BACKPRESS_PATH . 'class.bp-sql-schema-parser.php' ); 
  751. bb_log_deprecated( 'function', __FUNCTION__, 'BP_SQL_Schema_Parser::get_column_definition' ); 
  752. return BP_SQL_Schema_Parser::get_column_definition( $column_data ); 
  753.  
  754. function bb_sql_get_index_definition( $index_data ) { 
  755. require_once( BACKPRESS_PATH . 'class.bp-sql-schema-parser.php' ); 
  756. bb_log_deprecated( 'function', __FUNCTION__, 'BP_SQL_Schema_Parser::get_index_definition' ); 
  757. return BP_SQL_Schema_Parser::get_index_definition( $index_data ); 
  758.  
  759. function bb_sql_describe_table( $query ) { 
  760. require_once( BACKPRESS_PATH . 'class.bp-sql-schema-parser.php' ); 
  761. bb_log_deprecated( 'function', __FUNCTION__, 'BP_SQL_Schema_Parser::describe_table' ); 
  762. return BP_SQL_Schema_Parser::describe_table( $query ); 
  763.  
  764. function bb_sql_parse( $sql ) { 
  765. require_once( BACKPRESS_PATH . 'class.bp-sql-schema-parser.php' ); 
  766. bb_log_deprecated( 'function', __FUNCTION__, 'BP_SQL_Schema_Parser::parse' ); 
  767. return BP_SQL_Schema_Parser::parse( $sql ); 
  768.  
  769. function bb_sql_delta( $queries, $execute = true ) { 
  770. require_once( BACKPRESS_PATH . 'class.bp-sql-schema-parser.php' ); 
  771. bb_log_deprecated( 'function', __FUNCTION__, 'BP_SQL_Schema_Parser::delta' ); 
  772. global $bbdb; 
  773. return BP_SQL_Schema_Parser::delta( $bbdb, $queries, false, $execute ); 
  774.  
  775. function is_front() { 
  776. bb_log_deprecated( 'function', __FUNCTION__, 'bb_is_front' ); 
  777. return bb_is_front(); 
  778.  
  779. function is_forum() { 
  780. bb_log_deprecated( 'function', __FUNCTION__, 'bb_is_forum' ); 
  781. return bb_is_forum(); 
  782.  
  783. function is_bb_tags() { 
  784. bb_log_deprecated( 'function', __FUNCTION__, 'bb_is_tags' ); 
  785. return bb_is_tags(); 
  786.  
  787. function is_bb_tag() { 
  788. bb_log_deprecated( 'function', __FUNCTION__, 'bb_is_tag' ); 
  789. return bb_is_tag(); 
  790.  
  791. function is_topic_edit() { 
  792. bb_log_deprecated( 'function', __FUNCTION__, 'bb_is_topic_edit' ); 
  793. return bb_is_topic_edit(); 
  794.  
  795. function is_topic() { 
  796. bb_log_deprecated( 'function', __FUNCTION__, 'bb_is_topic' ); 
  797. return bb_is_topic(); 
  798.  
  799. function is_bb_feed() { 
  800. bb_log_deprecated( 'function', __FUNCTION__, 'bb_is_feed' ); 
  801. return bb_is_feed(); 
  802.  
  803. function is_bb_search() { 
  804. bb_log_deprecated( 'function', __FUNCTION__, 'bb_is_search' ); 
  805. return bb_is_search(); 
  806.  
  807. function is_bb_profile() { 
  808. bb_log_deprecated( 'function', __FUNCTION__, 'bb_is_profile' ); 
  809. return bb_is_profile(); 
  810.  
  811. function is_bb_favorites() { 
  812. bb_log_deprecated( 'function', __FUNCTION__, 'bb_is_favorites' ); 
  813. return bb_is_favorites(); 
  814.  
  815. function is_view() { 
  816. bb_log_deprecated( 'function', __FUNCTION__, 'bb_is_view' ); 
  817. return bb_is_view(); 
  818.  
  819. function is_bb_stats() { 
  820. bb_log_deprecated( 'function', __FUNCTION__, 'bb_is_statistics' ); 
  821. return bb_is_statistics(); 
  822.  
  823. function is_bb_admin() { 
  824. bb_log_deprecated( 'function', __FUNCTION__, 'bb_is_admin' ); 
  825. return bb_is_admin(); 
  826.  
  827. function bb_verify_email( $email, $check_dns = false ) 
  828. bb_log_deprecated( 'function', __FUNCTION__, 'is_email' ); 
  829. return is_email( $email, $check_dns ); 
  830.  
  831. function bb_tag_rss_link( $tag_id = 0, $context = 0 ) 
  832. bb_log_deprecated( 'function', __FUNCTION__, 'bb_tag_posts_rss_link' ); 
  833. return bb_tag_posts_rss_link( $tag_id, $context ); 
  834.  
  835. function bb_get_tag_rss_link( $tag_id = 0, $context = 0 ) 
  836. bb_log_deprecated( 'function', __FUNCTION__, 'bb_get_tag_posts_rss_link' ); 
  837. return bb_get_tag_posts_rss_link( $tag_id, $context ); 
  838.  
  839. function rename_tag( $tag_id, $tag_name ) 
  840. bb_log_deprecated( 'function', __FUNCTION__, 'bb_rename_tag' ); 
  841. return bb_rename_tag( $tag_id, $tag_name ); 
  842.  
  843. function merge_tags( $old_id, $new_id ) 
  844. bb_log_deprecated( 'function', __FUNCTION__, 'bb_merge_tags' ); 
  845. return bb_merge_tags( $old_id, $new_id ); 
  846.  
  847. function bb_related_tags( $_tag = false, $number = 0 ) 
  848. bb_log_deprecated( 'function', __FUNCTION__, 'no alternative' ); 
  849. return false; 
  850.  
  851. function bb_related_tags_heat_map( $args = '' ) 
  852. bb_log_deprecated( 'function', __FUNCTION__, 'no alternative' ); 
  853. return; 
  854.  
  855. function bb_cache_javascript_headers() 
  856. bb_log_deprecated( 'function', __FUNCTION__, 'cache_javascript_headers' ); 
  857. cache_javascript_headers(); 
  858.  
  859. function bb_is_ssl() 
  860. bb_log_deprecated( 'function', __FUNCTION__, 'is_ssl' ); 
  861. return is_ssl(); 
  862.  
  863. function bb_force_ssl_user_forms( $force = '' ) 
  864. bb_log_deprecated( 'function', __FUNCTION__, 'force_ssl_login' ); 
  865. return force_ssl_login( $force ); 
  866.  
  867. function bb_force_ssl_admin( $force = '' ) 
  868. bb_log_deprecated( 'function', __FUNCTION__, 'force_ssl_admin' ); 
  869. return force_ssl_admin( $force ); 
  870.  
  871. function get_forums( $args = null ) 
  872. bb_log_deprecated( 'function', __FUNCTION__, 'bb_get_forums' ); 
  873. return bb_get_forums( $args ); 
  874.  
  875. function get_forum( $id ) 
  876. bb_log_deprecated( 'function', __FUNCTION__, 'bb_get_forum' ); 
  877. return bb_get_forum( $id ); 
  878.  
  879. function get_latest_posts( $limit = 0, $page = 1 ) 
  880. bb_log_deprecated( 'function', __FUNCTION__, 'bb_get_latest_posts' ); 
  881. return bb_get_latest_posts( $limit, $page ); 
  882.  
  883. function get_latest_forum_posts( $forum_id, $limit = 0, $page = 1 ) 
  884. bb_log_deprecated( 'function', __FUNCTION__, 'bb_get_latest_forum_posts' ); 
  885. return bb_get_latest_forum_posts( $forum_id, $limit, $page ); 
  886.  
  887. function update_post_positions( $topic_id ) 
  888. bb_log_deprecated( 'function', __FUNCTION__, 'bb_update_post_positions' ); 
  889. return bb_update_post_positions( $topic_id ); 
  890.  
  891. function topics_replied_on_undelete_post( $post_id ) 
  892. bb_log_deprecated( 'function', __FUNCTION__, 'bb_topics_replied_on_undelete_post' ); 
  893. return bb_topics_replied_on_undelete_post( $post_id ); 
  894.  
  895. function post_author_cache( $posts ) 
  896. bb_log_deprecated( 'function', __FUNCTION__, 'bb_post_author_cache' ); 
  897. return bb_post_author_cache( $posts ); 
  898.  
  899. function get_recent_user_replies( $user_id ) 
  900. bb_log_deprecated( 'function', __FUNCTION__, 'bb_get_recent_user_replies' ); 
  901. return bb_get_recent_user_replies( $user_id ); 
  902.  
  903. function no_where( $where ) 
  904. bb_log_deprecated( 'function', __FUNCTION__, 'bb_no_where' ); 
  905. return bb_no_where( $where ); 
  906.  
  907. function get_path( $level = 1, $base = false, $request = false ) 
  908. bb_log_deprecated( 'function', __FUNCTION__, 'bb_get_path' ); 
  909. return bb_get_path( $level, $base, $request ); 
  910.  
  911. function add_profile_tab( $tab_title, $users_cap, $others_cap, $file, $arg = false ) 
  912. bb_log_deprecated( 'function', __FUNCTION__, 'bb_add_profile_tab' ); 
  913. return bb_add_profile_tab( $tab_title, $users_cap, $others_cap, $file, $arg ); 
  914.  
  915. function can_access_tab( $profile_tab, $viewer_id, $owner_id ) 
  916. bb_log_deprecated( 'function', __FUNCTION__, 'bb_can_access_tab' ); 
  917. return bb_can_access_tab( $profile_tab, $viewer_id, $owner_id ); 
  918.  
  919. function get_profile_info_keys( $context = null ) 
  920. bb_log_deprecated( 'function', __FUNCTION__, 'bb_get_profile_info_keys' ); 
  921. return bb_get_profile_info_keys( $context ); 
  922.  
  923. function get_profile_admin_keys( $context = null ) 
  924. bb_log_deprecated( 'function', __FUNCTION__, 'bb_get_profile_admin_keys' ); 
  925. return bb_get_profile_admin_keys( $context ); 
  926.  
  927. function get_assignable_caps() 
  928. bb_log_deprecated( 'function', __FUNCTION__, 'bb_get_assignable_caps' ); 
  929. return bb_get_assignable_caps(); 
  930.  
  931. function get_page_number( $item, $per_page = 0 ) 
  932. bb_log_deprecated( 'function', __FUNCTION__, 'bb_get_page_number' ); 
  933. return bb_get_page_number( $item, $per_page ); 
  934.  
  935. function get_recent_registrants( $num = 10 ) 
  936. bb_log_deprecated('function', __FUNCTION__, 'no aternative'); 
  937. return; 
  938.  
  939. if ( !function_exists( 'get_total_users' ) ) { 
  940. function get_total_users() 
  941. bb_log_deprecated( 'function', __FUNCTION__, 'bb_get_total_users' ); 
  942. return bb_get_total_users(); 
  943.  
  944. function total_users() 
  945. bb_log_deprecated( 'function', __FUNCTION__, 'bb_total_users' ); 
  946. bb_total_users(); 
  947.  
  948. if ( !function_exists( 'update_user_status' ) ) { 
  949. function update_user_status( $user_id, $user_status = 0 ) 
  950. bb_log_deprecated( 'function', __FUNCTION__, 'bb_update_user_status' ); 
  951. return bb_update_user_status( $user_id, $user_status ); 
  952.  
  953. function bb_get_current_commenter() { 
  954. bb_log_deprecated( 'function', __FUNCTION__, 'bb_get_current_poster' ); 
  955. extract( bb_get_current_poster() ); 
  956. return array( 'comment_author' => $post_author, 'comment_email' => $post_author_email, 'comment_author_url' => $post_author_url ); 
  957.  
  958. function bb_check_comment_flood( $ip = '', $email = '', $date = '' ) { 
  959. bb_log_deprecated( 'function', __FUNCTION__, 'bb_check_post_flood' ); 
  960. bb_check_post_flood(); 
.