Changeset 7025 for branches/1.7/bp-core/bp-core-functions.php
- Timestamp:
- 05/08/2013 08:31:14 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.7/bp-core/bp-core-functions.php
r6771 r7025 142 142 // from the current blog 143 143 $posts_table_name = bp_is_multiblog_mode() ? $wpdb->posts : $wpdb->get_blog_prefix( bp_get_root_blog_id() ) . 'posts'; 144 $page_ids_sql = implode( ',', (array) $page_ids);144 $page_ids_sql = implode( ',', wp_parse_id_list( $page_ids ) ); 145 145 $page_names = $wpdb->get_results( "SELECT ID, post_name, post_parent, post_title FROM {$posts_table_name} WHERE ID IN ({$page_ids_sql}) AND post_status = 'publish' " ); 146 146
Note: See TracChangeset
for help on using the changeset viewer.