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

git-svn-id: https://develop.svn.wordpress.org/trunk@11516 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-06-04 00:52:31 +00:00
parent dcf5ea2881
commit f0cc116f8a
3 changed files with 3 additions and 4 deletions
+1 -3
View File
@@ -188,12 +188,10 @@ function wp_widget_control( $sidebar_args ) {
<a class="widget-control-remove" href="#remove"><?php _e('Remove'); ?></a> |
<a class="widget-control-close" href="#close"><?php _e('Close'); ?></a>
</div>
<?php if ( 'noform' !== $has_form ) { ?>
<div class="alignright">
<div class="alignright<?php if ( 'noform' === $has_form ) echo ' widget-control-noform'; ?>">
<img src="images/wpspin_light.gif" class="ajax-feedback " title="" alt="" />
<input type="submit" name="savewidget" class="button-primary widget-control-save" value="<?php esc_attr_e('Save'); ?>" />
</div>
<?php } ?>
<br class="clear" />
</div>
</form>