View Single Post
Old 08-15-2007, 08:17 PM   #48 (permalink)
jamestl2
Senior Member
 
jamestl2's Avatar
 
Join Date: Mar 2007
Location: What of it?
Posts: 688
jamestl2 is on a distinguished road
Default

Basically I'm flying blind here, but I found this line of code about halfway through the wp-includes/post.php file (If it is even right?):

Code:
function wp_publish_post($post_id) {
	$post = get_post($post_id);

	if ( empty($post) )
		return;

	if ( 'publish' == $post->post_status )
		return;

	return wp_update_post(array('post_status' => 'publish', 'ID' => $post_id, 'no_filter' => true));
}
__________________
Lightning Shock - My Website
Wordpress Mountain
- Wordpress Resources and Community
jamestl2 is offline   Reply With Quote