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:
parent
dcf5ea2881
commit
f0cc116f8a
@ -322,6 +322,7 @@ a.widget-control-edit {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.widget-control-noform,
|
||||
#access-off,
|
||||
.widgets_access .widget-action,
|
||||
.widgets_access .sidebar-name-arrow,
|
||||
|
@ -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>
|
||||
|
@ -438,7 +438,7 @@ function wp_default_styles( &$styles ) {
|
||||
|
||||
$styles->add( 'global', '/wp-admin/css/global.css', array(), '20090514' );
|
||||
$styles->add( 'media', '/wp-admin/css/media.css', array(), '20090516' );
|
||||
$styles->add( 'widgets', '/wp-admin/css/widgets.css', array(), '20090601' );
|
||||
$styles->add( 'widgets', '/wp-admin/css/widgets.css', array(), '20090603' );
|
||||
$styles->add( 'dashboard', '/wp-admin/css/dashboard.css', array(), '20090514' );
|
||||
$styles->add( 'install', '/wp-admin/css/install.css', array(), '20090514' );
|
||||
$styles->add( 'theme-editor', '/wp-admin/css/theme-editor.css', array(), '20090514' );
|
||||
|
Loading…
Reference in New Issue
Block a user