Changeset 7055 for trunk/src/includes/common/template.php
- Timestamp:
- 01/10/2020 05:26:12 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/template.php
r7006 r7055 1468 1468 // Parse arguments against default values 1469 1469 $r = bbp_parse_args( $args, array( 1470 1471 // Support for get_posts() 1470 1472 'post_type' => bbp_get_forum_post_type(), 1471 1473 'post_parent' => null, 1472 1474 'post_status' => null, 1473 1475 'selected' => 0, 1476 'include' => array(), 1474 1477 'exclude' => array(), 1475 1478 'numberposts' => -1, 1476 1479 'orderby' => 'menu_order title', 1477 1480 'order' => 'ASC', 1481 1482 // Preloaded content 1478 1483 'posts' => array(), 1484 1485 // Custom hierarchy walkers 1479 1486 'walker' => '', 1480 1487 … … 1498 1505 if ( is_numeric( $r['selected'] ) && ( $r['selected'] < 0 ) ) { 1499 1506 $r['selected'] = 0; 1507 } 1508 1509 // Force array 1510 if ( ! empty( $r['include'] ) && ! is_array( $r['include'] ) ) { 1511 $r['include'] = explode( ',', $r['include'] ); 1500 1512 } 1501 1513 … … 1517 1529 'post_status' => $r['post_status'], 1518 1530 'post_parent' => $r['post_parent'], 1531 'include' => $r['include'], 1519 1532 'exclude' => $r['exclude'], 1520 1533 'numberposts' => $r['numberposts'],
Note: See TracChangeset
for help on using the changeset viewer.