Make WordPress Core


Ignore:
Timestamp:
06/04/2009 12:52:31 AM (15 years ago)
Author:
azaozz
Message:

Using css to hide the Save button in widgets without settings, props Denis-de-Bernardy, fixes #10020

File:
1 edited

Legend:

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

    r11498 r11516  
    189189        <a class="widget-control-close" href="#close"><?php _e('Close'); ?></a>
    190190        </div>
    191 <?php       if ( 'noform' !== $has_form ) { ?>
    192         <div class="alignright">
     191        <div class="alignright<?php if ( 'noform' === $has_form ) echo ' widget-control-noform'; ?>">
    193192        <img src="images/wpspin_light.gif" class="ajax-feedback " title="" alt="" />
    194193        <input type="submit" name="savewidget" class="button-primary widget-control-save" value="<?php esc_attr_e('Save'); ?>" />
    195194        </div>
    196 <?php       } ?>
    197195        <br class="clear" />
    198196    </div>
Note: See TracChangeset for help on using the changeset viewer.