Changeset 21833
- Timestamp:
- 09/13/2012 05:06:25 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/media.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r21830 r21833 818 818 819 819 if ( !empty($include) ) { 820 $include = preg_replace( '/[^0-9,]+/', '', $include );821 820 $_attachments = get_posts( array('include' => $include, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) ); 822 821 … … 826 825 } 827 826 } elseif ( !empty($exclude) ) { 828 $exclude = preg_replace( '/[^0-9,]+/', '', $exclude );829 827 $attachments = get_children( array('post_parent' => $id, 'exclude' => $exclude, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) ); 830 828 } else {
Note: See TracChangeset
for help on using the changeset viewer.