Changeset 5676 for trunk/src/includes/topics/template.php
- Timestamp:
- 04/15/2015 02:33:11 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/topics/template.php (modified) (37 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/template.php
r5674 r5676 118 118 * @since bbPress (r2485) 119 119 * 120 * @param mixed$args All the arguments supported by {@link WP_Query}120 * @param array $args All the arguments supported by {@link WP_Query} 121 121 * @uses current_user_can() To check if the current user can edit other's topics 122 122 * @uses bbp_get_topic_post_type() To get the topic post type … … 139 139 * @return object Multidimensional array of topic information 140 140 */ 141 function bbp_has_topics( $args = '') {141 function bbp_has_topics( $args = array() ) { 142 142 global $wp_rewrite; 143 143 … … 835 835 * @since bbPress (r2966) 836 836 * 837 * @param mixed$args See {@link bbp_get_topic_pagination()}837 * @param array $args See {@link bbp_get_topic_pagination()} 838 838 * @uses bbp_get_topic_pagination() To get the topic pagination links 839 839 */ 840 function bbp_topic_pagination( $args = '') {840 function bbp_topic_pagination( $args = array() ) { 841 841 echo bbp_get_topic_pagination( $args ); 842 842 } … … 846 846 * @since bbPress (r2966) 847 847 * 848 * @param mixed$args This function supports these arguments:848 * @param array $args This function supports these arguments: 849 849 * - topic_id: Topic id 850 850 * - before: Before the links … … 865 865 * @return string Pagination links 866 866 */ 867 function bbp_get_topic_pagination( $args = '') {867 function bbp_get_topic_pagination( $args = array() ) { 868 868 global $wp_rewrite; 869 869 … … 1484 1484 * @uses bbp_get_topic_author_link() To get the topic author link 1485 1485 */ 1486 function bbp_topic_author_link( $args = '') {1486 function bbp_topic_author_link( $args = array() ) { 1487 1487 echo bbp_get_topic_author_link( $args ); 1488 1488 } … … 1508 1508 * @return string Author link of topic 1509 1509 */ 1510 function bbp_get_topic_author_link( $args = '') {1510 function bbp_get_topic_author_link( $args = array() ) { 1511 1511 1512 1512 // Parse arguments against default values … … 2338 2338 * 2339 2339 * @param int $topic_id Optional. Topic id 2340 * @param mixed$args See {@link bbp_get_topic_tag_list()}2340 * @param array $args See {@link bbp_get_topic_tag_list()} 2341 2341 * @uses bbp_get_topic_tag_list() To get the topic tag list 2342 2342 */ … … 2529 2529 * @since bbPress (r2727) 2530 2530 * 2531 * @param mixed$args See {@link bbp_get_topic_edit_link()}2531 * @param array $args See {@link bbp_get_topic_edit_link()} 2532 2532 * @uses bbp_get_topic_edit_link() To get the topic edit link 2533 2533 */ 2534 function bbp_topic_edit_link( $args = '') {2534 function bbp_topic_edit_link( $args = array() ) { 2535 2535 echo bbp_get_topic_edit_link( $args ); 2536 2536 } … … 2541 2541 * @since bbPress (r2727) 2542 2542 * 2543 * @param mixed$args This function supports these args:2543 * @param array $args This function supports these args: 2544 2544 * - id: Optional. Topic id 2545 2545 * - link_before: Before the link … … 2555 2555 * @return string Topic edit link 2556 2556 */ 2557 function bbp_get_topic_edit_link( $args = '') {2557 function bbp_get_topic_edit_link( $args = array() ) { 2558 2558 2559 2559 // Parse arguments against default values … … 2646 2646 * @since bbPress (r2727) 2647 2647 * 2648 * @param mixed$args See {@link bbp_get_topic_trash_link()}2648 * @param array $args See {@link bbp_get_topic_trash_link()} 2649 2649 * @uses bbp_get_topic_trash_link() To get the topic trash link 2650 2650 */ 2651 function bbp_topic_trash_link( $args = '') {2651 function bbp_topic_trash_link( $args = array() ) { 2652 2652 echo bbp_get_topic_trash_link( $args ); 2653 2653 } … … 2658 2658 * @since bbPress (r2727) 2659 2659 * 2660 * @param mixed$args This function supports these args:2660 * @param array $args This function supports these args: 2661 2661 * - id: Optional. Topic id 2662 2662 * - link_before: Before the link … … 2679 2679 * @return string Topic trash link 2680 2680 */ 2681 function bbp_get_topic_trash_link( $args = '') {2681 function bbp_get_topic_trash_link( $args = array() ) { 2682 2682 2683 2683 // Parse arguments against default values … … 2721 2721 * @since bbPress (r2727) 2722 2722 * 2723 * @param mixed$args See {@link bbp_get_topic_close_link()}2723 * @param array $args See {@link bbp_get_topic_close_link()} 2724 2724 * @uses bbp_get_topic_close_link() To get the topic close link 2725 2725 */ 2726 function bbp_topic_close_link( $args = '') {2726 function bbp_topic_close_link( $args = array() ) { 2727 2727 echo bbp_get_topic_close_link( $args ); 2728 2728 } … … 2733 2733 * @since bbPress (r2727) 2734 2734 * 2735 * @param mixed$args This function supports these args:2735 * @param array $args This function supports these args: 2736 2736 * - id: Optional. Topic id 2737 2737 * - link_before: Before the link … … 2750 2750 * @return string Topic close link 2751 2751 */ 2752 function bbp_get_topic_close_link( $args = '') {2752 function bbp_get_topic_close_link( $args = array() ) { 2753 2753 2754 2754 // Parse arguments against default values … … 2781 2781 * @since bbPress (r5504) 2782 2782 * 2783 * @param mixed$args See {@link bbp_get_topic_approve_link()}2783 * @param array $args See {@link bbp_get_topic_approve_link()} 2784 2784 * @uses bbp_get_topic_approve_link() To get the topic approve link 2785 2785 */ 2786 function bbp_topic_approve_link( $args = '') {2786 function bbp_topic_approve_link( $args = array() ) { 2787 2787 echo bbp_get_topic_approve_link( $args ); 2788 2788 } … … 2793 2793 * @since bbPress (r5504) 2794 2794 * 2795 * @param mixed$args This function supports these args:2795 * @param array $args This function supports these args: 2796 2796 * - id: Optional. Topic id 2797 2797 * - link_before: Before the link … … 2811 2811 * @return string Topic approve link 2812 2812 */ 2813 function bbp_get_topic_approve_link( $args = '') {2813 function bbp_get_topic_approve_link( $args = array() ) { 2814 2814 2815 2815 // Parse arguments against default values … … 2842 2842 * @since bbPress (r2754) 2843 2843 * 2844 * @param mixed$args See {@link bbp_get_topic_stick_link()}2844 * @param array $args See {@link bbp_get_topic_stick_link()} 2845 2845 * @uses bbp_get_topic_stick_link() To get the topic stick link 2846 2846 */ 2847 function bbp_topic_stick_link( $args = '') {2847 function bbp_topic_stick_link( $args = array() ) { 2848 2848 echo bbp_get_topic_stick_link( $args ); 2849 2849 } … … 2854 2854 * @since bbPress (r2754) 2855 2855 * 2856 * @param mixed$args This function supports these args:2856 * @param array $args This function supports these args: 2857 2857 * - id: Optional. Topic id 2858 2858 * - link_before: Before the link … … 2873 2873 * @return string Topic stick link 2874 2874 */ 2875 function bbp_get_topic_stick_link( $args = '') {2875 function bbp_get_topic_stick_link( $args = array() ) { 2876 2876 2877 2877 // Parse arguments against default values … … 2919 2919 * @since bbPress (r2756) 2920 2920 * 2921 * @param mixed$args2921 * @param array $args 2922 2922 * @uses bbp_get_topic_merge_link() To get the topic merge link 2923 2923 */ 2924 function bbp_topic_merge_link( $args = '') {2924 function bbp_topic_merge_link( $args = array() ) { 2925 2925 echo bbp_get_topic_merge_link( $args ); 2926 2926 } … … 2931 2931 * @since bbPress (r2756) 2932 2932 * 2933 * @param mixed$args This function supports these args:2933 * @param array $args This function supports these args: 2934 2934 * - id: Optional. Topic id 2935 2935 * - link_before: Before the link … … 2945 2945 * @return string Topic merge link 2946 2946 */ 2947 function bbp_get_topic_merge_link( $args = '') {2947 function bbp_get_topic_merge_link( $args = array() ) { 2948 2948 2949 2949 // Parse arguments against default values … … 2972 2972 * @since bbPress (r2727) 2973 2973 * 2974 * @param mixed$args See {@link bbp_get_topic_spam_link()}2974 * @param array $args See {@link bbp_get_topic_spam_link()} 2975 2975 * @uses bbp_get_topic_spam_link() Topic spam link 2976 2976 */ 2977 function bbp_topic_spam_link( $args = '') {2977 function bbp_topic_spam_link( $args = array() ) { 2978 2978 echo bbp_get_topic_spam_link( $args ); 2979 2979 } … … 2984 2984 * @since bbPress (r2727) 2985 2985 * 2986 * @param mixed$args This function supports these args:2986 * @param array $args This function supports these args: 2987 2987 * - id: Optional. Topic id 2988 2988 * - link_before: Before the link … … 3001 3001 * @return string Topic spam link 3002 3002 */ 3003 function bbp_get_topic_spam_link( $args = '') {3003 function bbp_get_topic_spam_link( $args = array() ) { 3004 3004 3005 3005 // Parse arguments against default values … … 3218 3218 * - selected: Override the selected option 3219 3219 */ 3220 function bbp_topic_type_select( $args = '') {3220 function bbp_topic_type_select( $args = array() ) { 3221 3221 echo bbp_get_form_topic_type_dropdown( $args ); 3222 3222 } … … 3233 3233 * - selected: Override the selected option 3234 3234 */ 3235 function bbp_form_topic_type_dropdown( $args = '') {3235 function bbp_form_topic_type_dropdown( $args = array() ) { 3236 3236 echo bbp_get_form_topic_type_dropdown( $args ); 3237 3237 } … … 3252 3252 * @uses bbp_is_topic_sticky() To check if the topic is a sticky 3253 3253 */ 3254 function bbp_get_form_topic_type_dropdown( $args = '') {3254 function bbp_get_form_topic_type_dropdown( $args = array() ) { 3255 3255 3256 3256 // Parse arguments against default values … … 3323 3323 * - selected: Override the selected option 3324 3324 */ 3325 function bbp_form_topic_status_dropdown( $args = '') {3325 function bbp_form_topic_status_dropdown( $args = array() ) { 3326 3326 echo bbp_get_form_topic_status_dropdown( $args ); 3327 3327 } … … 3341 3341 * - selected: Override the selected option 3342 3342 */ 3343 function bbp_get_form_topic_status_dropdown( $args = '') {3343 function bbp_get_form_topic_status_dropdown( $args = array() ) { 3344 3344 3345 3345 // Parse arguments against default values … … 3406 3406 * @uses bbp_get_single_topic_description() Return the eventual output 3407 3407 */ 3408 function bbp_single_topic_description( $args = '') {3408 function bbp_single_topic_description( $args = array() ) { 3409 3409 echo bbp_get_single_topic_description( $args ); 3410 3410 } … … 3415 3415 * @since bbPress (r2860) 3416 3416 * 3417 * @param mixed$args This function supports these arguments:3417 * @param array $args This function supports these arguments: 3418 3418 * - topic_id: Topic id 3419 3419 * - before: Before the text … … 3430 3430 * @return string Filtered topic description 3431 3431 */ 3432 function bbp_get_single_topic_description( $args = '') {3432 function bbp_get_single_topic_description( $args = array() ) { 3433 3433 3434 3434 // Parse arguments against default values
Note: See TracChangeset
for help on using the changeset viewer.