Dashboard styling and validation fixes from mdawaffe. see #7552
git-svn-id: http://svn.automattic.com/wordpress/trunk@9120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9ce46d3937
commit
ca893a2828
|
@ -100,6 +100,13 @@ div.postbox div.inside {
|
|||
padding: 0;
|
||||
}
|
||||
|
||||
/* Recent Drafts */
|
||||
#dashboard_recent_drafts ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
/* Primary Feed */
|
||||
|
||||
#dashboard_primary a.rsswidget, #dashboard_plugins h5 {
|
||||
|
|
|
@ -144,6 +144,8 @@ function wp_dashboard() {
|
|||
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
|
||||
wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
|
||||
echo "</p>\n</form>\n";
|
||||
|
||||
echo "</div>";
|
||||
}
|
||||
|
||||
/* 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 ); ?>" />
|
||||
</div>
|
||||
|
||||
<h4><label for="content"><?php _e('Post') ?></label></h4>
|
||||
<h4><label for="quickpress-content"><?php _e('Post') ?></label></h4>
|
||||
<div class="textarea-wrap">
|
||||
<textarea name="content" id="quickpress-content" class="mceEditor" rows="3" cols="15"><?php echo $post->post_content; ?></textarea>
|
||||
</div>
|
||||
|
@ -210,6 +212,7 @@ function wp_dashboard_quick_press( $dashboard, $meta_box ) {
|
|||
}
|
||||
|
||||
function wp_dashboard_recent_drafts( $drafts = false ) {
|
||||
global $post;
|
||||
if ( !$drafts ) {
|
||||
$drafts_query = new WP_Query( array(
|
||||
'post_type' => 'post',
|
||||
|
@ -225,10 +228,10 @@ function wp_dashboard_recent_drafts( $drafts = false ) {
|
|||
|
||||
if ( $drafts && is_array( $drafts ) ) :
|
||||
$list = array();
|
||||
foreach ( $drafts as $draft ) {
|
||||
foreach ( $drafts as $post ) {
|
||||
$url = get_edit_post_link( $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>
|
||||
|
@ -542,7 +545,7 @@ function wp_dashboard_plugins_output() {
|
|||
$slug = '';
|
||||
|
||||
$ilink = wp_nonce_url('plugin-install.php?tab=plugin-information&plugin=' . $slug, 'install-plugin_' . $slug) .
|
||||
'&TB_iframe=true&width=600&height=800';
|
||||
'&TB_iframe=true&width=600&height=800';
|
||||
|
||||
echo "<h4>$label</h4>\n";
|
||||
echo "<h5><a href='$link'>$title</a></h5> <span>(<a href='$ilink' class='thickbox' title='$title'>" . __( 'Install' ) . "</a>)</span>\n";
|
||||
|
|
|
@ -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_comment_form_unfiltered_html_nonce(); ?>
|
||||
<?php if ( $table_row ) : ?>
|
||||
</td></tr></tbody></table></form>
|
||||
</td></tr></tbody></table>
|
||||
<?php else : ?>
|
||||
</div></div>
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue