Changeset 12327
- Timestamp:
- 12/06/2009 06:01:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r12208 r12327 747 747 $r['exclude'] = preg_replace('/[^0-9,]/', '', $r['exclude']); 748 748 749 // Allow plugins to filter an array of excluded pages 750 $r['exclude'] = implode(',', apply_filters('wp_list_pages_excludes', explode(',', $r['exclude']))); 749 // Allow plugins to filter an array of excluded pages (but don't put a nullstring into the array) 750 $exclude_array = ( $r['exclude'] ) ? explode(',', $r['exclude']) : array(); 751 $r['exclude'] = implode( ',', apply_filters('wp_list_pages_excludes', $exclude_array) ); 751 752 752 753 // Query pages.
Note: See TracChangeset
for help on using the changeset viewer.