Changeset 13481 for trunk/src/bp-core/deprecated/12.0.php
- Timestamp:
- 05/17/2023 11:14:06 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/deprecated/12.0.php
r13477 r13481 477 477 */ 478 478 return apply_filters_deprecated( 'bp_get_blogs_directory_permalink', array( $url ), '12.0.0', 'bp_get_blogs_directory_url' ); 479 } 480 481 /** 482 * Returns the upper limit on the "max" item count, for widgets that support it. 483 * 484 * @since 5.0.0 485 * @deprecated 12.0.0 486 * 487 * @param string $widget_class Optional. Class name of the calling widget. 488 * @return int 489 */ 490 function bp_get_widget_max_count_limit( $widget_class = '' ) { 491 _deprecated_function( __FUNCTION__, '12.0.0' ); 492 /** 493 * Filters the upper limit on the "max" item count, for widgets that support it. 494 * 495 * @since 5.0.0 496 * @deprecated 12.0.0 497 * 498 * @param int $count Defaults to 50. 499 * @param string $widget_class Class name of the calling widget. 500 */ 501 return apply_filters_deprecated( 'bp_get_widget_max_count_limit', array( 50, $widget_class ), '12.0.0' ); 479 502 } 480 503 } … … 664 687 return $post_states; 665 688 } 689 690 /** 691 * Should BuddyPress load Legacy Widgets? 692 * 693 * @since 10.0.0 694 * @deprecated 12.0.0 695 * 696 * @return bool False if BuddyPress shouldn't load Legacy Widgets. True otherwise. 697 */ 698 function bp_core_retain_legacy_widgets() { 699 _deprecated_function( __FUNCTION__, '12.0.0' ); 700 return false; 701 } 702 703 /** 704 * Checks whether BuddyPress should unhook Legacy Widget registrations. 705 * 706 * @since 10.0.0 707 * @deprecated 12.0.0 708 */ 709 function bp_core_maybe_unhook_legacy_widgets() { 710 _deprecated_function( __FUNCTION__, '12.0.0' ); 711 } 712 713 /** 714 * Registers the Login widget. 715 * 716 * @since 10.0.0 717 * @deprecated 12.0.0 718 */ 719 function bp_core_register_login_widget() { 720 _deprecated_function( __FUNCTION__, '12.0.0' ); 721 } 722 723 /** 724 * Register bp-core widgets. 725 * 726 * @since 1.0.0 727 * @deprecated 12.0.0 728 */ 729 function bp_core_register_widgets() { 730 _deprecated_function( __FUNCTION__, '12.0.0' ); 731 } 732 733 /** 734 * Registers the Recent Posts Legacy Widget. 735 * 736 * @since 10.0.0 737 * @deprecated 12.0.0 738 */ 739 function bp_blogs_register_recent_posts_widget() { 740 _deprecated_function( __FUNCTION__, '12.0.0' ); 741 } 742 743 /** 744 * Register the widgets for the Blogs component. 745 * 746 * @deprecated 12.0.0 747 */ 748 function bp_blogs_register_widgets() { 749 _deprecated_function( __FUNCTION__, '12.0.0' ); 750 } 751 752 /** 753 * Registers the Friends Legacy Widget. 754 * 755 * @since 10.0.0 756 * @deprecated 12.0.0 757 */ 758 function bp_friends_register_friends_widget() { 759 _deprecated_function( __FUNCTION__, '12.0.0' ); 760 } 761 762 /** 763 * Register the friends widget. 764 * 765 * @since 1.9.0 766 * @deprecated 12.0.0 767 */ 768 function bp_friends_register_widgets() { 769 _deprecated_function( __FUNCTION__, '12.0.0' ); 770 } 771 772 /** 773 * Process AJAX pagination or filtering for the Friends widget. 774 * 775 * @since 1.9.0 776 * @deprecated 12.0.0 777 */ 778 function bp_core_ajax_widget_friends() { 779 _deprecated_function( __FUNCTION__, '12.0.0' ); 780 } 781 782 /** 783 * Injects specific BuddyPress CSS classes into a widget sidebar. 784 * 785 * Helps to standardize styling of BuddyPress widgets within a theme that 786 * does not use dynamic CSS classes in their widget sidebar's 'before_widget' 787 * call. 788 * 789 * @since 2.4.0 790 * @deprecated 12.0.0 791 * @access private 792 * 793 * @global array $wp_registered_widgets Current registered widgets. 794 * 795 * @param array $params Current sidebar params. 796 * @return array 797 */ 798 function _bp_core_inject_bp_widget_css_class( $params ) { 799 _deprecated_function( __FUNCTION__, '12.0.0' ); 800 } 801 802 /** 803 * Registers the Groups Legacy Widget. 804 * 805 * @since 10.0.0 806 * @deprecated 12.0.0 807 */ 808 function bp_groups_register_groups_widget() { 809 _deprecated_function( __FUNCTION__, '12.0.0' ); 810 } 811 812 /** 813 * Register widgets for groups component. 814 * 815 * @since 1.0.0 816 * @deprecated 12.0.0 817 */ 818 function groups_register_widgets() { 819 _deprecated_function( __FUNCTION__, '12.0.0' ); 820 } 821 822 /** 823 * AJAX callback for the Groups List widget. 824 * 825 * @since 1.0.0 826 * @deprecated 12.0.0 827 */ 828 function groups_ajax_widget_groups_list() { 829 _deprecated_function( __FUNCTION__, '12.0.0' ); 830 } 831 832 /** 833 * Registers the Members Legacy Widget. 834 * 835 * @since 10.0.0 836 * @deprecated 12.0.0 837 */ 838 function bp_members_register_members_widget() { 839 _deprecated_function( __FUNCTION__, '12.0.0' ); 840 } 841 842 /** 843 * Registers the "Who's online?" Legacy Widget. 844 * 845 * @since 10.0.0 846 * @deprecated 12.0.0 847 */ 848 function bp_members_register_whos_online_widget() { 849 _deprecated_function( __FUNCTION__, '12.0.0' ); 850 } 851 852 /** 853 * Registers the "Recently Active" Legacy Widget. 854 * 855 * @since 10.0.0 856 * @deprecated 12.0.0 857 */ 858 function bp_members_register_recently_active_widget() { 859 _deprecated_function( __FUNCTION__, '12.0.0' ); 860 } 861 862 /** 863 * Register bp-members widgets. 864 * 865 * Previously, these widgets were registered in bp-core. 866 * 867 * @since 2.2.0 868 * @deprecated 12.0.0 869 */ 870 function bp_members_register_widgets() { 871 _deprecated_function( __FUNCTION__, '12.0.0' ); 872 } 873 874 /** 875 * AJAX request handler for Members widgets. 876 * 877 * @since 1.0.0 878 * @deprecated 12.0.0 879 * 880 * @see BP_Core_Members_Widget 881 */ 882 function bp_core_ajax_widget_members() { 883 _deprecated_function( __FUNCTION__, '12.0.0' ); 884 } 885 886 /** 887 * Registers the Sitewide Notices Legacy Widget. 888 * 889 * @since 10.0.0 890 * @deprecated 12.0.0 891 */ 892 function bp_messages_register_sitewide_notices_widget() { 893 _deprecated_function( __FUNCTION__, '12.0.0' ); 894 } 895 896 /** 897 * Register widgets for the Messages component. 898 * 899 * @since 1.9.0 900 * @deprecated 12.0.0 901 */ 902 function bp_messages_register_widgets() { 903 _deprecated_function( __FUNCTION__, '12.0.0' ); 904 }
Note: See TracChangeset
for help on using the changeset viewer.