WordPress.org

Make WordPress Core

Changeset 17129


Ignore:
Timestamp:
12/24/2010 02:19:41 PM (10 years ago)
Author:
nacin
Message:

Validation fixes. props ocean90, fixes #15287.

Location:
trunk/wp-admin
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-comments.php

    r17006 r17129  
    238238
    239239<?php $wp_list_table->display(); ?>
     240</form>
    240241</div>
    241 </form>
    242242
    243243<div id="ajax-response"></div>
  • trunk/wp-admin/includes/class-wp-ms-sites-list-table.php

    r16992 r17129  
    268268
    269269                    case 'lastupdated':
    270                         echo "<td valign='top'class='$column_name column-$column_name'$style>";
     270                        echo "<td valign='top' class='$column_name column-$column_name'$style>";
    271271                            if ( 'list' == $mode )
    272272                                $date = 'Y/m/d';
     
    278278                    break;
    279279                case 'registered':
    280                         echo "<td valign='top'class='$column_name column-$column_name'$style>";
     280                        echo "<td valign='top' class='$column_name column-$column_name'$style>";
    281281                        if ( $blog['registered'] == '0000-00-00 00:00:00' )
    282282                            echo '&#x2014;';
     
    288288                    break;
    289289                case 'users':
    290                         echo "<td valign='top'class='$column_name column-$column_name'$style>";
     290                        echo "<td valign='top' class='$column_name column-$column_name'$style>";
    291291                            $blogusers = get_users( array( 'blog_id' => $blog['blog_id'], 'number' => 6) );
    292292                            if ( is_array( $blogusers ) ) {
  • trunk/wp-admin/includes/class-wp-ms-themes-list-table.php

    r17115 r17129  
    218218            if ( 'search' != $type ) {
    219219                $status_links[$type] = sprintf( "<a href='%s' %s>%s</a>",
    220                     add_query_arg('theme_status', $type, $url),
     220                    esc_url( add_query_arg('theme_status', $type, $url) ),
    221221                    ( $type == $status ) ? ' class="current"' : '',
    222222                    sprintf( $text, number_format_i18n( $count ) )
     
    294294 
    295295        $class = empty( $theme['enabled'] ) ? 'inactive' : 'active';
    296         $checkbox_id = md5($theme['Name']) . "_checkbox";
     296        $checkbox_id = "checkbox_" . md5($theme['Name']);
    297297        $checkbox = "<input type='checkbox' name='checked[]' value='" . esc_attr( $theme_key ) . "' id='" . $checkbox_id . "' /><label class='screen-reader-text' for='" . $checkbox_id . "' >" . __('Select') . " " . $theme['Name'] . "</label>";
    298298
     
    326326
    327327                    $theme_meta = array();
     328
    328329                    if ( !empty( $theme['Version'] ) )
    329330                        $theme_meta[] = sprintf( __( 'Version %s' ), $theme['Version'] );
    330                     if ( !empty( $theme['Author'] ) ) {
    331                         $author = $theme['Author'];
    332                         if ( !empty( $theme['Author URI'] ) )
    333                             $author = '<a href="' . $theme['Author URI'] . '" title="' . esc_attr__( 'Visit author homepage' ) . '">' . $theme['Author'] . '</a>';
    334                         $theme_meta[] = sprintf( __( 'By %s' ), $author );
    335                     }
     331
     332                    if ( !empty( $theme['Author'] ) )
     333                        $theme_meta[] = sprintf( __( 'By %s' ), $theme['Author'] );
     334
    336335                    if ( !empty( $theme['Theme URI'] ) )
    337336                        $theme_meta[] = '<a href="' . $theme['Theme URI'] . '" title="' . esc_attr__( 'Visit theme homepage' ) . '">' . __( 'Visit Theme Site' ) . '</a>';
  • trunk/wp-admin/includes/class-wp-plugins-list-table.php

    r17102 r17129  
    385385
    386386        $class = $is_active ? 'active' : 'inactive';
    387         $checkbox_id = md5($plugin_data['Name']) . "_checkbox";
     387        $checkbox_id =  "checkbox_" . md5($plugin_data['Name']);
    388388        $checkbox = in_array( $status, array( 'mustuse', 'dropins' ) ) ? '' : "<input type='checkbox' name='checked[]' value='" . esc_attr( $plugin_file ) . "' id='" . $checkbox_id . "' /><label class='screen-reader-text' for='" . $checkbox_id . "' >" . __('Select') . " " . $plugin_data['Name'] . "</label>";
    389389        if ( 'dropins' != $context ) {
  • trunk/wp-admin/includes/dashboard.php

    r17102 r17129  
    443443        <p>
    444444            <input type="text" name="s" value="" size="17" />
    445             <?php submit_button( __( 'Search Users' ), 'button', 'submit', false ); ?>
     445            <?php submit_button( __( 'Search Users' ), 'button', 'submit', false, array( 'id' => 'submit_users' ) ); ?>
    446446        </p>
    447447    </form>
     
    450450        <p>
    451451            <input type="text" name="s" value="" size="17" />
    452             <?php submit_button( __( 'Search Sites' ), 'button', 'submit', false ); ?>
     452            <?php submit_button( __( 'Search Sites' ), 'button', 'submit', false, array( 'id' => 'submit_sites' ) ); ?>
    453453        </p>
    454454    </form>
  • trunk/wp-admin/upload.php

    r17006 r17129  
    214214<?php find_posts_div(); ?>
    215215<br class="clear" />
    216 </div>
     216
    217217</form>
    218 <br class="clear" />
    219 
    220218</div>
    221219
Note: See TracChangeset for help on using the changeset viewer.