Changeset 1076
- Timestamp:
- 08/18/07 19:21:07 (1 year ago)
- Files:
-
- trunk/src/lyceum/wp-admin/admin-db.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/lyceum/wp-admin/admin-db.php
r1075 r1076 402 402 403 403 if (!empty ($title)) 404 // return $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_title = '$title' $post_date");405 404 return $wpdb->get_post_var("ID", "post_title = '$title' $post_date"); 406 405 else 407 406 if (!empty ($content)) 408 // return $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_content = '$content' $post_date");409 407 return $wpdb->get_post_var("ID", "post_content = '$content' $post_date"); 408 410 409 return 0; 411 410 }
