Changeset 5676 for trunk/src/includes/forums/template.php
- Timestamp:
- 04/15/2015 02:33:11 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/forums/template.php (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/forums/template.php
r5637 r5676 102 102 * @since bbPress (r2464) 103 103 * 104 * @param mixed$args All the arguments supported by {@link WP_Query}104 * @param array $args All the arguments supported by {@link WP_Query} 105 105 * @uses WP_Query To make query and get the forums 106 106 * @uses bbp_get_forum_post_type() To get the forum post type id … … 114 114 * @return object Multidimensional array of forum information 115 115 */ 116 function bbp_has_forums( $args = '') {116 function bbp_has_forums( $args = array() ) { 117 117 118 118 // Forum archive only shows root … … 677 677 * @since bbPress (r2747) 678 678 * 679 * @param mixed$args All the arguments supported by {@link WP_Query}679 * @param array $args All the arguments supported by {@link WP_Query} 680 680 * @uses bbp_get_forum_id() To get the forum id 681 681 * @uses current_user_can() To check if the current user is capable of … … 686 686 * @return mixed false if none, array of subs if yes 687 687 */ 688 function bbp_forum_get_subforums( $args = '') {688 function bbp_forum_get_subforums( $args = array() ) { 689 689 690 690 // Use passed integer as post_parent … … 739 739 * Output a list of forums (can be used to list subforums) 740 740 * 741 * @param mixed$args The function supports these args:741 * @param array $args The function supports these args: 742 742 * - before: To put before the output. Defaults to '<ul class="bbp-forums">' 743 743 * - after: To put after the output. Defaults to '</ul>' … … 755 755 * @uses bbp_get_forum_reply_count() To get forum reply count 756 756 */ 757 function bbp_list_forums( $args = '') {757 function bbp_list_forums( $args = array() ) { 758 758 759 759 // Define used variables … … 2036 2036 * @uses bbp_get_single_forum_description() Return the eventual output 2037 2037 */ 2038 function bbp_single_forum_description( $args = '') {2038 function bbp_single_forum_description( $args = array() ) { 2039 2039 echo bbp_get_single_forum_description( $args ); 2040 2040 } … … 2045 2045 * @since bbPress (r2860) 2046 2046 * 2047 * @param mixed$args This function supports these arguments:2047 * @param array $args This function supports these arguments: 2048 2048 * - forum_id: Forum id 2049 2049 * - before: Before the text … … 2061 2061 * @return string Filtered forum description 2062 2062 */ 2063 function bbp_get_single_forum_description( $args = '') {2063 function bbp_get_single_forum_description( $args = array() ) { 2064 2064 2065 2065 // Parse arguments against default values … … 2425 2425 * @uses bbp_get_form_forum_type() To get the topic's forum id 2426 2426 */ 2427 function bbp_form_forum_type_dropdown( $args = '') {2427 function bbp_form_forum_type_dropdown( $args = array() ) { 2428 2428 echo bbp_get_form_forum_type_dropdown( $args ); 2429 2429 } … … 2443 2443 * @return string HTML select list for selecting forum type 2444 2444 */ 2445 function bbp_get_form_forum_type_dropdown( $args = '') {2445 function bbp_get_form_forum_type_dropdown( $args = array() ) { 2446 2446 2447 2447 // Backpat for handling passing of a forum ID as integer … … 2517 2517 * @uses bbp_get_form_forum_status() To get the topic's forum id 2518 2518 */ 2519 function bbp_form_forum_status_dropdown( $args = '') {2519 function bbp_form_forum_status_dropdown( $args = array() ) { 2520 2520 echo bbp_get_form_forum_status_dropdown( $args ); 2521 2521 } … … 2535 2535 * @return string HTML select list for selecting forum status 2536 2536 */ 2537 function bbp_get_form_forum_status_dropdown( $args = '') {2537 function bbp_get_form_forum_status_dropdown( $args = array() ) { 2538 2538 2539 2539 // Backpat for handling passing of a forum ID … … 2609 2609 * @uses bbp_get_form_forum_visibility() To get the topic's forum id 2610 2610 */ 2611 function bbp_form_forum_visibility_dropdown( $args = '') {2611 function bbp_form_forum_visibility_dropdown( $args = array() ) { 2612 2612 echo bbp_get_form_forum_visibility_dropdown( $args ); 2613 2613 } … … 2627 2627 * @return string HTML select list for selecting forum visibility 2628 2628 */ 2629 function bbp_get_form_forum_visibility_dropdown( $args = '') {2629 function bbp_get_form_forum_visibility_dropdown( $args = array() ) { 2630 2630 2631 2631 // Backpat for handling passing of a forum ID
Note: See TracChangeset
for help on using the changeset viewer.