Changeset 6167 for branches/1.2/bb-includes/functions.bb-topic-tags.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-topic-tags.php
r3854 r6167 355 355 function get_tagged_topics( $args ) { 356 356 global $tagged_topic_count; 357 $_args = func_get_args(); 357 358 $defaults = array( 'tag_id' => false, 'page' => 1, 'number' => false, 'count' => true ); 358 359 if ( is_numeric( $args ) ) … … 361 362 $args = wp_parse_args( $args ); // Make sure it's an array 362 363 if ( 1 < func_num_args() ) 363 $args['page'] = func_get_arg(1);364 $args['page'] = $_args[1]; 364 365 if ( 2 < func_num_args() ) 365 $args['number'] = func_get_arg(2);366 $args['number'] = $_args[2]; 366 367 367 368 $args = wp_parse_args( $args, $defaults ); … … 377 378 378 379 function get_tagged_topic_posts( $args ) { 380 $_args = func_get_args(); 379 381 $defaults = array( 'tag_id' => false, 'page' => 1, 'number' => false ); 380 382 if ( is_numeric( $args ) ) … … 383 385 $args = wp_parse_args( $args ); // Make sure it's an array 384 386 if ( 1 < func_num_args() ) 385 $args['page'] = func_get_arg(1);387 $args['page'] = $_args[1]; 386 388 if ( 2 < func_num_args() ) 387 $args['number'] = func_get_arg(2);389 $args['number'] = $_args[2]; 388 390 389 391 $args = wp_parse_args( $args, $defaults );
Note: See TracChangeset
for help on using the changeset viewer.