go back.' ), attribute_escape( stripslashes( ( isset( $_GET['_wp_original_http_referer'] ) ? $_GET['_wp_original_http_referer'] : '') ) ) ); $messages[2] = __('Custom field updated.'); $messages[3] = __('Custom field deleted.'); $messages[4] = __('Post updated.'); $messages[6] = __('Post published.'); $messages[7] = __('Post saved.'); if ( isset($_GET['revision']) ) $messages[5] = sprintf( __('Post restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ); $notice = false; $notices[1] = __( 'There is an autosave of this post that is more recent than the version below. View the autosave.' ); if ( 0 == $post_ID ) { $form_action = 'post'; $temp_ID = -1 * time(); // don't change this formula without looking at wp_write_post() $form_extra = ""; $autosave = false; } else { $form_action = 'editpost'; $form_extra = ""; $autosave = wp_get_post_autosave( $post_ID ); // Detect if there exists an autosave newer than the post and if that autosave is different than the post if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt ) > mysql2date( 'U', $post->post_modified_gmt ) ) { foreach ( _wp_post_revision_fields() as $autosave_field => $_autosave_field ) { if ( wp_text_diff( $autosave->$autosave_field, $post->$autosave_field ) ) { $notice = sprintf( $notices[1], get_edit_post_link( $autosave->ID ) ); break; } } unset($autosave_field, $_autosave_field); } } ?>

ID ) { if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date $stamp = __('Scheduled for:
%1$s at %2$s'); } else if ( 'publish' == $post->post_status ) { // already published $stamp = __('Published on:
%1$s at %2$s'); } else if ( '0000-00-00 00:00:00' == $post->post_date ) { // draft, 1 or more saves, no date specified $stamp = __('Publish immediately'); } else { // draft, 1 or more saves, date specified $stamp = __('Publish on:
%1$s at %2$s'); } $date = mysql2date(get_option('date_format'), $post->post_date); $time = mysql2date(get_option('time_format'), $post->post_date); } else { // draft (no saves, and thus no date specified) $stamp = __('Publish immediately'); $date = mysql2date(get_option('date_format'), current_time('mysql')); $time = mysql2date(get_option('time_format'), current_time('mysql')); } ?>

 

post_status, array('publish', 'future') ) || 0 == $post->ID ) { ?> ID) ) echo "ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete post') . ""; ?>

This feature isn't fully functional in this prototype.

"; if ( empty( $post->ID ) ) return; $atts = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment' ) ); if ( !$atts ) { _e( 'No media.' ); return; } foreach ( $atts as $att ) { if ( $thumb = wp_get_attachment_image( $att->ID, array(60, 45), true ) ) { ?> post_title)); ?>"> $att->post_title"; echo "Remove | "; echo "Edit"; echo "
"; } } add_meta_box( 'mediadiv', __('Media added to this Post' ), 'post_media_meta_box', 'post', 'side', 'core' ); function post_categories_meta_box($post) { ?>

0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?>

use them in your template'); ?>

to_ping) ) .'" />'; if ('' != $post->pinged) { $pings = '

'. __('Already pinged:') . '

'; } ?>


()

pingbacks, no other action necessary.'); ?>

ID); list_meta($metadata); ?>

use in your theme.'); ?>

get_results( $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved != 'spam' ORDER BY comment_date", $post_ID) ) ) return; // Make sure comments, post, and post_author are cached // update_comment_cache($comments); ?>

post_status, 'private'); ?> tabindex="4" />

id ); // TODO: ROLE SYSTEM if ( $post->post_author && !in_array($post->post_author, $authors) ) $authors[] = $post->post_author; if ( $authors && count( $authors ) > 1 ) : function post_author_meta_box($post) { global $current_user, $user_ID; $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM if ( $post->post_author && !in_array($post->post_author, $authors) ) $authors[] = $post->post_author; ?> $authors, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?>

Posts / Write New Post' ), 'edit.php' ); else printf( __( 'Posts / Edit Post' ), 'edit.php' ); ?>

post_status ) { ?>
'; $form_prevstatus = ''; $saveasdraft = ''; ?> post_status ) wp_original_referer_field(true, 'previous'); ?>

ID); ?>
ID) && ! empty($sample_permalink_html) ) : echo $sample_permalink_html; endif; ?>

post_content); ?>
  '; if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) { $last_user = get_userdata($last_id); printf(__('Last edited by %1$s on %2$s at %3$s'), wp_specialchars( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); } else { printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); } echo ''; } ?>
post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message'])) : ?>