# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: C:\Users\Nashwan Doaqan\Documents\NetBeansProjects\bbp-trunk\trunk\includes\common
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
|
|
|
1531 | 1598 | |
1532 | 1599 | // Forum/Topic/Reply Feed |
1533 | 1600 | if ( isset( $query_vars['post_type'] ) ) { |
1534 | | |
| 1601 | |
| 1602 | $post_type = false; |
| 1603 | |
| 1604 | // Check if this query is for bbPress! |
| 1605 | foreach( array( |
| 1606 | bbp_get_forum_post_type(), |
| 1607 | bbp_get_topic_post_type(), |
| 1608 | bbp_get_reply_post_type() |
| 1609 | ) as $bbp_pt ) { |
| 1610 | |
| 1611 | if ( in_array( $bbp_pt, (array) $query_vars['post_type'], true ) ) { |
| 1612 | $post_type = $bbp_pt; |
| 1613 | break; |
| 1614 | } |
| 1615 | |
| 1616 | } |
| 1617 | |
| 1618 | if ( empty( $post_type ) ) |
| 1619 | return $query_vars; |
| 1620 | |
1535 | 1621 | // Supported select query vars |
1536 | 1622 | $select_query_vars = array( |
1537 | 1623 | 'p' => false, |
1538 | 1624 | 'name' => false, |
1539 | | $query_vars['post_type'] => false |
| 1625 | $post_type => false, |
1540 | 1626 | ); |
1541 | 1627 | |
1542 | 1628 | // Setup matched variables to select |
… |
… |
|
1550 | 1636 | $select_query_vars = array_filter( $select_query_vars ); |
1551 | 1637 | |
1552 | 1638 | // What bbPress post type are we looking for feeds on? |
1553 | | switch ( $query_vars['post_type'] ) { |
| 1639 | switch ( $post_type ) { |
1554 | 1640 | |
1555 | 1641 | // Forum |
1556 | 1642 | case bbp_get_forum_post_type() : |