Changeset 6167 for branches/1.2/bb-includes/functions.bb-topics.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-topics.php
r2798 r6167 60 60 61 61 function get_latest_topics( $args = null ) { 62 $_args = func_get_args(); 62 63 $defaults = array( 'forum' => false, 'page' => 1, 'exclude' => false, 'number' => false ); 63 64 if ( is_numeric( $args ) ) … … 66 67 $args = wp_parse_args( $args ); // Make sure it's an array 67 68 if ( 1 < func_num_args() ) 68 $args['page'] = func_get_arg(1);69 $args['page'] = $_args[1]; 69 70 if ( 2 < func_num_args() ) 70 $args['exclude'] = func_get_arg(2);71 $args['exclude'] = $_args[2]; 71 72 72 73 $args = wp_parse_args( $args, $defaults ); … … 437 438 438 439 function get_thread( $topic_id, $args = null ) { 440 $_args = func_get_args(); 439 441 $defaults = array( 'page' => 1, 'order' => 'ASC' ); 440 442 if ( is_numeric( $args ) ) 441 443 $args = array( 'page' => $args ); 442 if ( @ func_get_arg(2))444 if ( @$_args[2] ) 443 445 $defaults['order'] = 'DESC'; 444 446
Note: See TracChangeset
for help on using the changeset viewer.