Make WordPress Core

Changeset 10900


Ignore:
Timestamp:
04/09/2009 01:16:14 PM (16 years ago)
Author:
azaozz
Message:

Fix close tag in Theme Installer, props simek, fixes #9498

File:
1 edited

Legend:

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

    r10889 r10900  
    205205
    206206<li>
    207     <input type="checkbox" name="features[<?php echo $feature; ?>]" id="feature-id-<?php echo $feature; ?>" value="<?php echo $feature; ?>">
     207    <input type="checkbox" name="features[<?php echo $feature; ?>]" id="feature-id-<?php echo $feature; ?>" value="<?php echo $feature; ?>" />
    208208    <label for="feature-id-<?php echo $feature; ?>"><?php echo $feature_name; ?></label>
    209209</li>
     
    273273add_action('install_themes_upload', 'install_themes_upload', 10, 1);
    274274function install_themes_upload($page = 1) {
    275     ?>
     275?>
    276276<h4><?php _e('Install a theme in .zip format') ?></h4>
    277277<p class="install-help"><?php _e('If you have a theme in a .zip format, you may install it by uploading it here.') ?></p>
    278 <form method="post" enctype="multipart/form-data"
    279     action="<?php echo admin_url('theme-install.php?tab=do_upload') ?>"><?php wp_nonce_field( 'theme-upload') ?>
    280 <input type="file" name="themezip" /> <input type="submit"
    281     class="button" value="<?php _e('Install Now') ?>" /></form>
    282     <?php
     278<form method="post" enctype="multipart/form-data" action="<?php echo admin_url('theme-install.php?tab=do_upload') ?>">
     279    <?php wp_nonce_field( 'theme-upload') ?>
     280    <input type="file" name="themezip" />
     281    <input type="submit" class="button" value="<?php _e('Install Now') ?>" />
     282</form>
     283<?php
    283284}
    284285
     
    288289    if ( empty($theme) )
    289290        return;
    290     //var_dump($theme);
    291291
    292292    $name = wp_kses($theme->name, $themes_allowedtags);
    293293    $desc = wp_kses($theme->description, $themes_allowedtags);
    294294    //if ( strlen($desc) > 30 )
    295     //  $desc =  substr($desc, 0, 30) . '<span class="dots">...</span><span>' . substr($desc, 30) . '</span>';
     295    //  $desc =  substr($desc, 0, 15) . '<span class="dots">...</span><span>' . substr($desc, -15) . '</span>';
    296296
    297297    $preview_link = $theme->preview_url . '?TB_iframe=true&amp;width=600&amp;height=400';
Note: See TracChangeset for help on using the changeset viewer.