Changeset 5676 for trunk/src/includes/replies/template.php
- Timestamp:
- 04/15/2015 02:33:11 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/replies/template.php (modified) (25 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/template.php
r5675 r5676 99 99 * @since bbPress (r2553) 100 100 * 101 * @param mixed$args All the arguments supported by {@link WP_Query}101 * @param array $args All the arguments supported by {@link WP_Query} 102 102 * @uses bbp_show_lead_topic() Are we showing the topic as a lead? 103 103 * @uses bbp_get_topic_id() To get the topic id … … 119 119 * @return object Multidimensional array of reply information 120 120 */ 121 function bbp_has_replies( $args = '') {121 function bbp_has_replies( $args = array() ) { 122 122 global $wp_rewrite; 123 123 … … 1203 1203 * @since bbPress (r2717) 1204 1204 * 1205 * @param mixed$args Optional. If it is an integer, it is used as reply id.1205 * @param array $args Optional. If it is an integer, it is used as reply id. 1206 1206 * @uses bbp_get_reply_author_link() To get the reply author link 1207 1207 */ 1208 function bbp_reply_author_link( $args = '') {1208 function bbp_reply_author_link( $args = array() ) { 1209 1209 echo bbp_get_reply_author_link( $args ); 1210 1210 } … … 1214 1214 * @since bbPress (r2717) 1215 1215 * 1216 * @param mixed$args Optional. If an integer, it is used as reply id.1216 * @param array $args Optional. If an integer, it is used as reply id. 1217 1217 * @uses bbp_get_reply_id() To get the reply id 1218 1218 * @uses bbp_is_reply_anonymous() To check if the reply is by an … … 1228 1228 * @return string Author link of reply 1229 1229 */ 1230 function bbp_get_reply_author_link( $args = '') {1230 function bbp_get_reply_author_link( $args = array() ) { 1231 1231 1232 1232 // Parse arguments against default values … … 1936 1936 * @since bbPress (r2740) 1937 1937 * 1938 * @param mixed$args See {@link bbp_get_reply_edit_link()}1938 * @param array $args See {@link bbp_get_reply_edit_link()} 1939 1939 * @uses bbp_get_reply_edit_link() To get the reply edit link 1940 1940 */ 1941 function bbp_reply_edit_link( $args = '') {1941 function bbp_reply_edit_link( $args = array() ) { 1942 1942 echo bbp_get_reply_edit_link( $args ); 1943 1943 } … … 1948 1948 * @since bbPress (r2740) 1949 1949 * 1950 * @param mixed$args This function supports these arguments:1950 * @param array $args This function supports these arguments: 1951 1951 * - id: Reply id 1952 1952 * - link_before: HTML before the link … … 1962 1962 * @return string Reply edit link 1963 1963 */ 1964 function bbp_get_reply_edit_link( $args = '') {1964 function bbp_get_reply_edit_link( $args = array() ) { 1965 1965 1966 1966 // Parse arguments against default values … … 2052 2052 * @since bbPress (r2740) 2053 2053 * 2054 * @param mixed$args See {@link bbp_get_reply_trash_link()}2054 * @param array $args See {@link bbp_get_reply_trash_link()} 2055 2055 * @uses bbp_get_reply_trash_link() To get the reply trash link 2056 2056 */ 2057 function bbp_reply_trash_link( $args = '') {2057 function bbp_reply_trash_link( $args = array() ) { 2058 2058 echo bbp_get_reply_trash_link( $args ); 2059 2059 } … … 2064 2064 * @since bbPress (r2740) 2065 2065 * 2066 * @param mixed$args This function supports these arguments:2066 * @param array $args This function supports these arguments: 2067 2067 * - id: Reply id 2068 2068 * - link_before: HTML before the link … … 2086 2086 * @return string Reply trash link 2087 2087 */ 2088 function bbp_get_reply_trash_link( $args = '') {2088 function bbp_get_reply_trash_link( $args = array() ) { 2089 2089 2090 2090 // Parse arguments against default values … … 2128 2128 * @since bbPress (r2740) 2129 2129 * 2130 * @param mixed$args See {@link bbp_get_reply_spam_link()}2130 * @param array $args See {@link bbp_get_reply_spam_link()} 2131 2131 * @uses bbp_get_reply_spam_link() To get the reply spam link 2132 2132 */ 2133 function bbp_reply_spam_link( $args = '') {2133 function bbp_reply_spam_link( $args = array() ) { 2134 2134 echo bbp_get_reply_spam_link( $args ); 2135 2135 } … … 2140 2140 * @since bbPress (r2740) 2141 2141 * 2142 * @param mixed$args This function supports these arguments:2142 * @param array $args This function supports these arguments: 2143 2143 * - id: Reply id 2144 2144 * - link_before: HTML before the link … … 2159 2159 * @return string Reply spam link 2160 2160 */ 2161 function bbp_get_reply_spam_link( $args = '') {2161 function bbp_get_reply_spam_link( $args = array() ) { 2162 2162 2163 2163 // Parse arguments against default values … … 2191 2191 * @since bbPress (r4521) 2192 2192 * 2193 * @param mixed$args See {@link bbp_get_reply_move_link()}2193 * @param array $args See {@link bbp_get_reply_move_link()} 2194 2194 * @uses bbp_get_reply_move_link() To get the reply move link 2195 2195 */ 2196 function bbp_reply_move_link( $args = '') {2196 function bbp_reply_move_link( $args = array() ) { 2197 2197 echo bbp_get_reply_move_link( $args ); 2198 2198 } … … 2205 2205 * @since bbPress (r4521) 2206 2206 * 2207 * @param mixed$args This function supports these arguments:2207 * @param array $args This function supports these arguments: 2208 2208 * - id: Reply id 2209 2209 * - link_before: HTML before the link … … 2224 2224 * @return string Reply move link 2225 2225 */ 2226 function bbp_get_reply_move_link( $args = '') {2226 function bbp_get_reply_move_link( $args = array() ) { 2227 2227 2228 2228 // Parse arguments against default values … … 2259 2259 * @since bbPress (r2756) 2260 2260 * 2261 * @param mixed$args See {@link bbp_get_topic_split_link()}2261 * @param array $args See {@link bbp_get_topic_split_link()} 2262 2262 * @uses bbp_get_topic_split_link() To get the topic split link 2263 2263 */ 2264 function bbp_topic_split_link( $args = '') {2264 function bbp_topic_split_link( $args = array() ) { 2265 2265 echo bbp_get_topic_split_link( $args ); 2266 2266 } … … 2273 2273 * @since bbPress (r2756) 2274 2274 * 2275 * @param mixed$args This function supports these arguments:2275 * @param array $args This function supports these arguments: 2276 2276 * - id: Reply id 2277 2277 * - link_before: HTML before the link … … 2292 2292 * @return string Topic split link 2293 2293 */ 2294 function bbp_get_topic_split_link( $args = '') {2294 function bbp_get_topic_split_link( $args = array() ) { 2295 2295 2296 2296 // Parse arguments against default values … … 2325 2325 * @since bbPress (r5507) 2326 2326 * 2327 * @param mixed$args See {@link bbp_get_reply_approve_link()}2327 * @param array $args See {@link bbp_get_reply_approve_link()} 2328 2328 * @uses bbp_get_reply_approve_link() To get the reply approve link 2329 2329 */ 2330 function bbp_reply_approve_link( $args = '') {2330 function bbp_reply_approve_link( $args = array() ) { 2331 2331 echo bbp_get_reply_approve_link( $args ); 2332 2332 } … … 2337 2337 * @since bbPress (r5507) 2338 2338 * 2339 * @param mixed$args This function supports these args:2339 * @param array $args This function supports these args: 2340 2340 * - id: Optional. Reply id 2341 2341 * - link_before: Before the link … … 2355 2355 * @return string Reply approve link 2356 2356 */ 2357 function bbp_get_reply_approve_link( $args = '') {2357 function bbp_get_reply_approve_link( $args = array() ) { 2358 2358 2359 2359 // Parse arguments against default values … … 2769 2769 * - selected: Override the selected option 2770 2770 */ 2771 function bbp_form_reply_status_dropdown( $args = '') {2771 function bbp_form_reply_status_dropdown( $args = array() ) { 2772 2772 echo bbp_get_form_reply_status_dropdown( $args ); 2773 2773 } … … 2787 2787 * - selected: Override the selected option 2788 2788 */ 2789 function bbp_get_form_reply_status_dropdown( $args = '') {2789 function bbp_get_form_reply_status_dropdown( $args = array() ) { 2790 2790 2791 2791 // Parse arguments against default values
Note: See TracChangeset
for help on using the changeset viewer.