Dashboard styling and validation fixes from mdawaffe. see #7552

git-svn-id: https://develop.svn.wordpress.org/trunk@9120 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-10-10 23:54:27 +00:00
parent 6d727a9c2b
commit 53b8d4497a
3 changed files with 16 additions and 5 deletions

View File

@ -100,6 +100,13 @@ div.postbox div.inside {
padding: 0; padding: 0;
} }
/* Recent Drafts */
#dashboard_recent_drafts ul {
margin: 0;
padding: 0;
list-style: none;
}
/* Primary Feed */ /* Primary Feed */
#dashboard_primary a.rsswidget, #dashboard_plugins h5 { #dashboard_primary a.rsswidget, #dashboard_plugins h5 {

View File

@ -144,6 +144,8 @@ function wp_dashboard() {
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
echo "</p>\n</form>\n"; echo "</p>\n</form>\n";
echo "</div>";
} }
/* Dashboard Widgets */ /* Dashboard Widgets */
@ -182,7 +184,7 @@ function wp_dashboard_quick_press( $dashboard, $meta_box ) {
<input type="text" name="post_title" id="title" autocomplete="off" value="<?php echo attribute_escape( $post->post_title ); ?>" /> <input type="text" name="post_title" id="title" autocomplete="off" value="<?php echo attribute_escape( $post->post_title ); ?>" />
</div> </div>
<h4><label for="content"><?php _e('Post') ?></label></h4> <h4><label for="quickpress-content"><?php _e('Post') ?></label></h4>
<div class="textarea-wrap"> <div class="textarea-wrap">
<textarea name="content" id="quickpress-content" class="mceEditor" rows="3" cols="15"><?php echo $post->post_content; ?></textarea> <textarea name="content" id="quickpress-content" class="mceEditor" rows="3" cols="15"><?php echo $post->post_content; ?></textarea>
</div> </div>
@ -210,6 +212,7 @@ function wp_dashboard_quick_press( $dashboard, $meta_box ) {
} }
function wp_dashboard_recent_drafts( $drafts = false ) { function wp_dashboard_recent_drafts( $drafts = false ) {
global $post;
if ( !$drafts ) { if ( !$drafts ) {
$drafts_query = new WP_Query( array( $drafts_query = new WP_Query( array(
'post_type' => 'post', 'post_type' => 'post',
@ -225,10 +228,10 @@ function wp_dashboard_recent_drafts( $drafts = false ) {
if ( $drafts && is_array( $drafts ) ) : if ( $drafts && is_array( $drafts ) ) :
$list = array(); $list = array();
foreach ( $drafts as $draft ) { foreach ( $drafts as $post ) {
$url = get_edit_post_link( $draft->ID ); $url = get_edit_post_link( $draft->ID );
$title = _draft_or_post_title( $draft->ID ); $title = _draft_or_post_title( $draft->ID );
$list[] = "<a href='$url' title='" . sprintf( __( 'Edit "%s"' ), attribute_escape( $title ) ) . "'>$title</a>"; $list[] = '<abbr title="' . get_the_time(__('Y/m/d g:i:s A')) . '">' . get_the_time( get_option( 'date_format' ) ) . "</abbr> <a href='$url' title='" . sprintf( __( 'Edit "%s"' ), attribute_escape( $title ) ) . "'>$title</a>";
} }
?> ?>
<ul> <ul>
@ -542,7 +545,7 @@ function wp_dashboard_plugins_output() {
$slug = ''; $slug = '';
$ilink = wp_nonce_url('plugin-install.php?tab=plugin-information&plugin=' . $slug, 'install-plugin_' . $slug) . $ilink = wp_nonce_url('plugin-install.php?tab=plugin-information&plugin=' . $slug, 'install-plugin_' . $slug) .
'&TB_iframe=true&width=600&height=800'; '&amp;TB_iframe=true&amp;width=600&amp;height=800';
echo "<h4>$label</h4>\n"; echo "<h4>$label</h4>\n";
echo "<h5><a href='$link'>$title</a></h5>&nbsp;<span>(<a href='$ilink' class='thickbox' title='$title'>" . __( 'Install' ) . "</a>)</span>\n"; echo "<h5><a href='$link'>$title</a></h5>&nbsp;<span>(<a href='$ilink' class='thickbox' title='$title'>" . __( 'Install' ) . "</a>)</span>\n";

View File

@ -2082,10 +2082,11 @@ function wp_comment_reply($position = '1', $checkbox = false, $mode = 'single',
<?php wp_nonce_field( 'replyto-comment', '_ajax_nonce', false ); ?> <?php wp_nonce_field( 'replyto-comment', '_ajax_nonce', false ); ?>
<?php wp_comment_form_unfiltered_html_nonce(); ?> <?php wp_comment_form_unfiltered_html_nonce(); ?>
<?php if ( $table_row ) : ?> <?php if ( $table_row ) : ?>
</td></tr></tbody></table></form> </td></tr></tbody></table>
<?php else : ?> <?php else : ?>
</div></div> </div></div>
<?php endif; ?> <?php endif; ?>
</form>
<?php <?php
} }