Changeset 3641
- Timestamp:
- 01/01/2011 08:13:49 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
bp-activity.php (modified) (1 diff)
-
bp-core.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r3633 r3641 985 985 $content = preg_replace('/<img[^>]*>/Ui', '', $content ); 986 986 987 if ( !empty( $matches ) ) {987 if ( !empty( $matches ) && !empty( $matches[0] ) ) { 988 988 /* Get the SRC value */ 989 989 preg_match( '/<img.*?(src\=[\'|"]{0,1}.*?[\'|"]{0,1})[\s|>]{1}/i', $matches[0][0], $src ); -
trunk/bp-core.php
r3627 r3641 252 252 if ( empty( $page_ids ) ) 253 253 return false; 254 255 $posts_table_name = is_multisite() && !defined( 'BP_ENABLE_MULTIBLOG' ) ? $wpdb->get_blog_prefix( BP_ROOT_BLOG ) . 'posts' : $wpdb->posts; 254 256 255 257 $page_ids_sql = implode( ',', (array)$page_ids ); 256 $page_names = $wpdb->get_results( $wpdb->prepare( "SELECT ID, post_name, post_parent FROM {$wpdb->posts} WHERE ID IN ({$page_ids_sql}) " ) ); 258 259 $page_names = $wpdb->get_results( $wpdb->prepare( "SELECT ID, post_name, post_parent FROM {$posts_table_name} WHERE ID IN ({$page_ids_sql}) " ) ); 257 260 $pages = new stdClass; 258 261 … … 267 270 /* Get the slug */ 268 271 while ( $page_name->post_parent != 0 ) { 269 $parent = $wpdb->get_results( $wpdb->prepare( "SELECT post_name, post_parent FROM {$ wpdb->posts} WHERE ID = %d", $page_name->post_parent ) );272 $parent = $wpdb->get_results( $wpdb->prepare( "SELECT post_name, post_parent FROM {$posts_table_name} WHERE ID = %d", $page_name->post_parent ) ); 270 273 $slug[] = $parent[0]->post_name; 271 274 $page_name->post_parent = $parent[0]->post_parent;
Note: See TracChangeset
for help on using the changeset viewer.