mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Use valid HTML in the theme editor. span instead of div inside an anchor. props Utkarsh, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14625 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -154,7 +154,7 @@ if ($allowed_files) :
|
||||
$description = trim( get_file_description($template_file) );
|
||||
$template_show = basename($template_file);
|
||||
$filedesc = ( $description != $template_file ) ? "$description<br /><span class='nonessential'>($template_show)</span>" : "$description";
|
||||
$filedesc = ( $template_file == $file ) ? "<div class='highlight'>$description<br /><span class='nonessential'>($template_show)</span></div>" : $filedesc;
|
||||
$filedesc = ( $template_file == $file ) ? "<span class='highlight'>$description<br /><span class='nonessential'>($template_show)</span></span>" : $filedesc;
|
||||
|
||||
// If we have two files of the same name prefer the one in the Template Directory
|
||||
// This means that we display the correct files for child themes which overload Templates as well as Styles
|
||||
@@ -181,7 +181,7 @@ if ($allowed_files) :
|
||||
$description = trim( get_file_description($style_file) );
|
||||
$style_show = basename($style_file);
|
||||
$filedesc = ( $description != $style_file ) ? "$description<br /><span class='nonessential'>($style_show)</span>" : "$description";
|
||||
$filedesc = ( $style_file == $file ) ? "<div class='highlight'>$description<br /><span class='nonessential'>($style_show)</span></div>" : $filedesc;
|
||||
$filedesc = ( $style_file == $file ) ? "<span class='highlight'>$description<br /><span class='nonessential'>($style_show)</span></span>" : $filedesc;
|
||||
$template_mapping[ $description ] = array( _get_template_edit_filename($style_file, $stylesheet_dir), $filedesc );
|
||||
}
|
||||
ksort( $template_mapping );
|
||||
|
||||
Reference in New Issue
Block a user