user_level > 5) {
if ($GLOBALS['wp_version'] >= '2.7') { // WP 2.7+
add_meta_box(
'draft-posts', // id of the
we'll add
'Drafts', //title
'echo_drafts_box', // callback function that will echo the box content
'post', // where to add the box: on "post", "page", or "link" page
'side'
);
} else { //WP 2.5+
add_meta_box(
'draft-posts', // id of the
we'll add
'Drafts', //title
'echo_drafts_box', // callback function that will echo the box content
'post' // where to add the box: on "post", "page", or "link" page
);
}
}
}
function echo_drafts_box() { ?>