Changeset 6167 for branches/1.2/bb-includes/functions.bb-template.php
- Timestamp:
- 12/13/2016 09:16:20 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bb-includes/functions.bb-template.php
r3847 r6167 916 916 global $bb_forums_loop; 917 917 918 $_args = func_get_args(); 918 919 $default_type = 'flat'; 919 920 … … 922 923 } elseif ( func_num_args() > 1 ) { // bb_forums( 'ul', $args ); Deprecated 923 924 $default_type = $args; 924 $args = func_get_arg(1);925 $args = $_args[1]; 925 926 } elseif ( $args && is_string($args) && false === strpos($args, '=') ) { 926 927 $args = array( 'type' => $args ); … … 3225 3226 3226 3227 function bb_tag_heat_map( $args = '' ) { 3228 $_args = func_get_args(); 3227 3229 $defaults = array( 'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'limit' => 40, 'format' => 'flat' ); 3228 3230 $args = wp_parse_args( $args, $defaults ); 3229 3231 3230 3232 if ( 1 < $fn = func_num_args() ) : // For back compat 3231 $args['smallest'] = func_get_arg(0);3232 $args['largest'] = func_get_arg(1);3233 $args['unit'] = 2 < $fn ? func_get_arg(2): $unit;3234 $args['limit'] = 3 < $fn ? func_get_arg(3): $limit;3233 $args['smallest'] = $_args[0]; 3234 $args['largest'] = $_args[1]; 3235 $args['unit'] = 2 < $fn ? $_args[2] : $unit; 3236 $args['limit'] = 3 < $fn ? $_args[3] : $limit; 3235 3237 endif; 3236 3238 … … 3312 3314 3313 3315 function bb_forum_dropdown( $args = '' ) { 3316 $_args = func_get_args(); 3314 3317 if ( $args && is_string($args) && false === strpos($args, '=') ) 3315 3318 $args = array( 'callback' => $args ); 3316 3319 if ( 1 < func_num_args() ) 3317 $args['callback_args'] = func_get_arg(1);3320 $args['callback_args'] = $_args[1]; 3318 3321 echo bb_get_forum_dropdown( $args ); 3319 3322 } 3320 3323 3321 3324 function bb_get_forum_dropdown( $args = '' ) { 3325 $_args = func_get_args(); 3322 3326 $defaults = array( 'callback' => false, 'callback_args' => false, 'id' => 'forum_id', 'none' => false, 'selected' => false, 'tab' => false, 'hierarchical' => 1, 'depth' => 0, 'child_of' => 0, 'disable_categories' => 1, 'options_only' => false ); 3323 3327 if ( $args && is_string($args) && false === strpos($args, '=') ) 3324 3328 $args = array( 'callback' => $args ); 3325 3329 if ( 1 < func_num_args() ) 3326 $args['callback_args'] = func_get_arg(1);3330 $args['callback_args'] = $_args[1]; 3327 3331 3328 3332 $args = wp_parse_args( $args, $defaults );
Note: See TracChangeset
for help on using the changeset viewer.