Make WordPress Core


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

Validation fixes. props ocean90, fixes #15287.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>';
Note: See TracChangeset for help on using the changeset viewer.