Make WordPress Core


Ignore:
Timestamp:
05/14/2010 07:04:17 AM (14 years ago)
Author:
nacin
Message:

Use valid HTML in the theme editor. span instead of div inside an anchor. props Utkarsh, see #13383.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/theme-editor.php

    r14313 r14625  
    155155        $template_show = basename($template_file);
    156156        $filedesc = ( $description != $template_file ) ? "$description<br /><span class='nonessential'>($template_show)</span>" : "$description";
    157         $filedesc = ( $template_file == $file ) ? "<div class='highlight'>$description<br /><span class='nonessential'>($template_show)</span></div>" : $filedesc;
     157        $filedesc = ( $template_file == $file ) ? "<span class='highlight'>$description<br /><span class='nonessential'>($template_show)</span></span>" : $filedesc;
    158158
    159159        // If we have two files of the same name prefer the one in the Template Directory
     
    182182        $style_show = basename($style_file);
    183183        $filedesc = ( $description != $style_file ) ? "$description<br /><span class='nonessential'>($style_show)</span>" : "$description";
    184         $filedesc = ( $style_file == $file ) ? "<div class='highlight'>$description<br /><span class='nonessential'>($style_show)</span></div>" : $filedesc;
     184        $filedesc = ( $style_file == $file ) ? "<span class='highlight'>$description<br /><span class='nonessential'>($style_show)</span></span>" : $filedesc;
    185185        $template_mapping[ $description ] = array( _get_template_edit_filename($style_file, $stylesheet_dir), $filedesc );
    186186    }
Note: See TracChangeset for help on using the changeset viewer.