get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'draft' AND post_author = $user_ID"); if (1 < $user_level) { $editable = $wpdb->get_col("SELECT ID FROM $wpdb->users WHERE user_level <= '$user_level' AND ID != $user_ID"); if( is_array( $editable ) == false ) $other_drafts = ''; else { $editable = join(',', $editable); $other_drafts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'draft' AND post_author IN ($editable) "); } } else { $other_drafts = false; } if ($drafts || $other_drafts) { ?>
post_title = stripslashes($draft->post_title); if ($draft->post_title == '') $draft->post_title = sprintf(__('Post #%s'), $draft->ID); echo "$draft->post_title"; ++$i; } ?> .
post_title = stripslashes($draft->post_title); if ($draft->post_title == '') $draft->post_title = sprintf(__('Post #%s'), $draft->ID); echo "$draft->post_title"; ++$i; } ?> .
g:i:s a'); ?> | post_status) _e(' - Private'); ?> | user_level) ) { echo "" . __('Edit') . ""; } ?> | user_level) ) { echo "" . __('Delete') . ""; } ?> | |||||
( / ) (IP: )