Changeset 5676 for trunk/src/includes/users/template.php
- Timestamp:
- 04/15/2015 02:33:11 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/users/template.php (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/users/template.php
r5661 r5676 533 533 * @since bbPress (r2827) 534 534 * 535 * @param mixed$args Optional. See {@link bbp_get_admin_link()}535 * @param array $args Optional. See {@link bbp_get_admin_link()} 536 536 * @uses bbp_get_admin_link() To get the admin link 537 537 */ 538 function bbp_admin_link( $args = '') {538 function bbp_admin_link( $args = array() ) { 539 539 echo bbp_get_admin_link( $args ); 540 540 } … … 544 544 * @since bbPress (r2827) 545 545 * 546 * @param mixed$args Optional. This function supports these arguments:546 * @param array $args Optional. This function supports these arguments: 547 547 * - text: The text 548 548 * - before: Before the lnk … … 553 553 * @return The link 554 554 */ 555 function bbp_get_admin_link( $args = '') {555 function bbp_get_admin_link( $args = array() ) { 556 556 if ( ! current_user_can( 'moderate' ) ) { 557 557 return; … … 581 581 * @since bbPress (r3120) 582 582 * 583 * @param mixed$args Optional. If it is an integer, it is used as post id.583 * @param array $args Optional. If it is an integer, it is used as post id. 584 584 * @uses bbp_get_author_ip() To get the post author link 585 585 */ 586 function bbp_author_ip( $args = '') {586 function bbp_author_ip( $args = array() ) { 587 587 echo bbp_get_author_ip( $args ); 588 588 } … … 592 592 * @since bbPress (r3120) 593 593 * 594 * @param mixed$args Optional. If an integer, it is used as reply id.594 * @param array $args Optional. If an integer, it is used as reply id. 595 595 * @uses get_post_meta() To check if it's a topic page 596 596 * @return string Author link of reply 597 597 */ 598 function bbp_get_author_ip( $args = '') {598 function bbp_get_author_ip( $args = array() ) { 599 599 600 600 // Used as post id … … 859 859 * @since bbPress (r2652) 860 860 * 861 * @param mixed$args See {@link bbp_get_user_favorites_link()}861 * @param array $args See {@link bbp_get_user_favorites_link()} 862 862 * @param int $user_id Optional. User id 863 863 * @param bool $wrap Optional. If you want to wrap the link in <span id="favorite-toggle">. … … 875 875 * @since bbPress (r2652) 876 876 * 877 * @param mixed$args This function supports these arguments:877 * @param array $args This function supports these arguments: 878 878 * - subscribe: Favorite text 879 879 * - unsubscribe: Unfavorite text … … 896 896 * @return string User favorites link 897 897 */ 898 function bbp_get_user_favorites_link( $args = '', $user_id = 0, $wrap = true ) {898 function bbp_get_user_favorites_link( $args = array(), $user_id = 0, $wrap = true ) { 899 899 if ( ! bbp_is_favorites_active() ) { 900 900 return false; … … 1024 1024 * @since bbPress (r2668) 1025 1025 * 1026 * @param mixed$args See {@link bbp_get_user_subscribe_link()}1026 * @param array $args See {@link bbp_get_user_subscribe_link()} 1027 1027 * @param int $user_id Optional. User id 1028 1028 * @param bool $wrap Optional. If you want to wrap the link in <span id="subscription-toggle">. 1029 1029 * @uses bbp_get_user_subscribe_link() To get the subscribe link 1030 1030 */ 1031 function bbp_user_subscribe_link( $args = '', $user_id = 0, $wrap = true ) {1031 function bbp_user_subscribe_link( $args = array(), $user_id = 0, $wrap = true ) { 1032 1032 echo bbp_get_user_subscribe_link( $args, $user_id, $wrap ); 1033 1033 } … … 1037 1037 * @since bbPress (r2668) 1038 1038 * 1039 * @param mixed$args This function supports these arguments:1039 * @param array $args This function supports these arguments: 1040 1040 * - subscribe: Subscribe text 1041 1041 * - unsubscribe: Unsubscribe text … … 1062 1062 * @return string Permanent link to topic 1063 1063 */ 1064 function bbp_get_user_subscribe_link( $args = '', $user_id = 0, $wrap = true ) {1064 function bbp_get_user_subscribe_link( $args = array(), $user_id = 0, $wrap = true ) { 1065 1065 if ( ! bbp_is_subscriptions_active() ) { 1066 1066 return; … … 1682 1682 * @since bbPress (r2875) 1683 1683 * 1684 * @param mixed$args Optional. If it is an integer, it is used as post id.1684 * @param array $args Optional. If it is an integer, it is used as post id. 1685 1685 * @uses bbp_get_author_link() To get the post author link 1686 1686 */ 1687 function bbp_author_link( $args = '') {1687 function bbp_author_link( $args = array() ) { 1688 1688 echo bbp_get_author_link( $args ); 1689 1689 } … … 1693 1693 * @since bbPress (r2875) 1694 1694 * 1695 * @param mixed$args Optional. If an integer, it is used as reply id.1695 * @param array $args Optional. If an integer, it is used as reply id. 1696 1696 * @uses bbp_is_topic() To check if it's a topic page 1697 1697 * @uses bbp_get_topic_author_link() To get the topic author link … … 1708 1708 * @return string Author link of reply 1709 1709 */ 1710 function bbp_get_author_link( $args = '') {1710 function bbp_get_author_link( $args = array() ) { 1711 1711 1712 1712 $post_id = is_numeric( $args ) ? (int) $args : 0; … … 1797 1797 * @return bool 1798 1798 */ 1799 function bbp_user_can_view_forum( $args = '') {1799 function bbp_user_can_view_forum( $args = array() ) { 1800 1800 1801 1801 // Parse arguments against default values
Note: See TracChangeset
for help on using the changeset viewer.