- Timestamp:
- 12/24/2010 02:19:41 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-ms-themes-list-table.php
r17115 r17129 218 218 if ( 'search' != $type ) { 219 219 $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) ), 221 221 ( $type == $status ) ? ' class="current"' : '', 222 222 sprintf( $text, number_format_i18n( $count ) ) … … 294 294 295 295 $class = empty( $theme['enabled'] ) ? 'inactive' : 'active'; 296 $checkbox_id = md5($theme['Name']) . "_checkbox";296 $checkbox_id = "checkbox_" . md5($theme['Name']); 297 297 $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>"; 298 298 … … 326 326 327 327 $theme_meta = array(); 328 328 329 if ( !empty( $theme['Version'] ) ) 329 330 $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 336 335 if ( !empty( $theme['Theme URI'] ) ) 337 336 $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.