Changeset 17989 for trunk/wp-admin/includes/export.php
- Timestamp:
- 05/22/2011 10:30:05 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/export.php
r17700 r17989 50 50 $post_types = get_post_types( array( 'can_export' => true ) ); 51 51 $esses = array_fill( 0, count($post_types), '%s' ); 52 $where = $wpdb->prepare( "{$wpdb->posts}.post_type IN (" . implode(',',$esses) .")", $post_types );52 $where = $wpdb->prepare( "{$wpdb->posts}.post_type IN (" . implode( ',', $esses ) . ')', $post_types ); 53 53 } 54 54 … … 124 124 125 125 // $str = ent2ncr(esc_html($str)); 126 $str = "<![CDATA[$str" . ( ( substr( $str, -1 ) == ']' ) ? ' ' : '' ) . "]]>";126 $str = "<![CDATA[$str" . ( ( substr( $str, -1 ) == ']' ) ? ' ' : '' ) . ']]>'; 127 127 128 128 return $str; … … 351 351 // fetch 20 posts at a time rather than loading the entire table into memory 352 352 while ( $next_posts = array_splice( $post_ids, 0, 20 ) ) { 353 $where = "WHERE ID IN (" . join( ',', $next_posts ) . ")";353 $where = 'WHERE ID IN (' . join( ',', $next_posts ) . ')'; 354 354 $posts = $wpdb->get_results( "SELECT * FROM {$wpdb->posts} $where" ); 355 355
Note: See TracChangeset
for help on using the changeset viewer.