diff -r a4642baaf829 -r 4d4862461b8d web/wp-admin/edit-page-form.php --- a/web/wp-admin/edit-page-form.php Tue Feb 02 14:45:47 2010 +0000 +++ b/web/wp-admin/edit-page-form.php Tue Feb 02 15:44:16 2010 +0000 @@ -1,499 +1,195 @@ -View page'), get_permalink($post_ID)); -$messages[2] = __('Custom field updated.'); -$messages[3] = __('Custom field deleted.'); -$messages[5] = sprintf(__('Page published. View page'), get_permalink($post_ID)); -$messages[6] = sprintf(__('Page submitted. Preview page'), add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ); - -if ( isset($_GET['revision']) ) - $messages[5] = sprintf( __('Page restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ); - -$notice = false; -$notices[1] = __( 'There is an autosave of this page that is more recent than the version below. View the autosave.' ); - -if ( 0 == $post_ID) { - $form_action = 'post'; - $nonce_action = 'add-page'; - $temp_ID = -1 * time(); // don't change this formula without looking at wp_write_post() - $form_extra = ""; -} else { - $post_ID = (int) $post_ID; - $form_action = 'editpost'; - $nonce_action = 'update-page_' . $post_ID; - $form_extra = ""; - $autosave = wp_get_post_autosave( $post_ID ); - if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) - $notice = sprintf( $notices[1], get_edit_post_link( $autosave->ID ) ); -} - -$temp_ID = (int) $temp_ID; -$user_ID = (int) $user_ID; - -/** - * Display submit form fields. - * - * @since 2.7.0 - * - * @param object $post - */ -function page_submit_meta_box($post) { - global $action; - - $can_publish = current_user_can('publish_pages'); -?> -
use in your theme.'); ?>
- - - - -trackbacks and pingbacks.'); ?>
- - -id, true, 'page' ); // TODO: ROLE SYSTEM -if ( $post->post_author && !in_array($post->post_author, $authors) ) - $authors[] = $post->post_author; -if ( $authors && count( $authors ) > 1 ) { - /** - * Display page author form fields, when more than one author exists. - * - * @since 2.6.0 - * - * @param object $post - */ - function page_author_meta_box($post){ - global $current_user, $user_ID; - $authors = get_editable_user_ids( $current_user->id, true, 'page' ); // 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) ); ?> - - -