WordPress.org

Make WordPress Core

Ticket #10669: dashboard.diff

File dashboard.diff, 2.1 KB (added by niallkennedy, 9 years ago)

single quotes for static strings

  • dashboard.php

     
    132132function _wp_dashboard_control_callback( $dashboard, $meta_box ) {
    133133        echo '<form action="" method="post" class="dashboard-widget-control-form">';
    134134        wp_dashboard_trigger_widget_control( $meta_box['id'] );
    135         echo "<p class='submit'><input type='hidden' name='widget_id' value='" . esc_attr($meta_box['id']) . "' /><input type='submit' value='" . esc_attr__( 'Submit' ) . "' /></p>";
     135        echo '<p class="submit"><input type="hidden" name="widget_id" value="' . esc_attr($meta_box['id']) . '" /><input type="submit" value="' . esc_attr__( 'Submit' ) . '" /></p>';
    136136
    137137        echo '</form>';
    138138}
     
    163163                        $hide2 = $hide3 = $hide4 = 'display:none;';
    164164        }
    165165?>
    166 <div id='dashboard-widgets' class='metabox-holder'>
     166<div id="dashboard-widgets" class="metabox-holder">
    167167<?php
    168168        echo "\t<div class='postbox-container' style='$width'>\n";
    169169        do_meta_boxes( 'dashboard', 'normal', '' );
     
    179179?>
    180180</div></div>
    181181
    182 <form style='display: none' method='get' action=''>
     182<form style="display:none" method="get" action="">
    183183        <p>
    184184<?php
    185185        wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
     
    566566                        <?php echo get_avatar( $comment, 50 ); ?>
    567567
    568568                        <div class="dashboard-comment-wrap">
    569                         <h4 class="comment-meta"><?php printf( __( 'From %1$s on %2$s%3$s' ), '<cite class="comment-author">' . get_comment_author_link() . '</cite>', $comment_post_link." ".$comment_link, ' <span class="approve">' . __( '[Pending]' ) . '</span>' ); ?></h4>
     569                        <h4 class="comment-meta"><?php printf( __( 'From %1$s on %2$s%3$s' ), '<cite class="comment-author">' . get_comment_author_link() . '</cite>', $comment_post_link.' '.$comment_link, ' <span class="approve">' . __( '[Pending]' ) . '</span>' ); ?></h4>
    570570
    571571                        <?php
    572572                        else :
     
    697697 */
    698698function wp_dashboard_rss_output( $widget_id ) {
    699699        $widgets = get_option( 'dashboard_widget_options' );
    700         echo "<div class='rss-widget'>";
     700        echo '<div class="rss-widget">';
    701701        wp_widget_rss_output( $widgets[$widget_id] );
    702702        echo "</div>";
    703703}