Changeset 4496 for trunk/includes/common/template-tags.php
- Timestamp:
- 11/24/2012 06:06:59 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/includes/common/template-tags.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/common/template-tags.php
r4485 r4496 1278 1278 } 1279 1279 1280 // Unset the args not needed for WP_Query to avoid any possible conflicts.1281 // Note: walker and disable_categories are not unset1282 unset( $r['select_id'], $r['tab'], $r['options_only'], $r['show_none'], $r['none_found'] );1283 1284 1280 /** Post Status *******************************************************/ 1285 1281 … … 1313 1309 $tab = (int) $r['tab']; 1314 1310 $retval = ''; 1315 $posts = get_posts( $r );1316 1311 $disabled = disabled( isset( bbpress()->options[$r['disabled']] ), true, false ); 1312 $posts = get_posts( array( 1313 'post_type' => $r['post_type'], 1314 'post_status' => $r['post_status'], 1315 'sort_column' => $r['sort_column'], 1316 'child_of' => $r['child_of'], 1317 'numberposts' => $r['numberposts'], 1318 'orderby' => $r['orderby'], 1319 'order' => $r['order'], 1320 ) ); 1317 1321 1318 1322 /** Drop Down *********************************************************/
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)