Make WordPress Core

Changeset 11516


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

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/widgets.css

    r11503 r11516  
    323323}
    324324
     325.widget-control-noform,
    325326#access-off,
    326327.widgets_access .widget-action,
  • 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>
  • trunk/wp-includes/script-loader.php

    r11503 r11516  
    439439    $styles->add( 'global', '/wp-admin/css/global.css', array(), '20090514' );
    440440    $styles->add( 'media', '/wp-admin/css/media.css', array(), '20090516' );
    441     $styles->add( 'widgets', '/wp-admin/css/widgets.css', array(), '20090601' );
     441    $styles->add( 'widgets', '/wp-admin/css/widgets.css', array(), '20090603' );
    442442    $styles->add( 'dashboard', '/wp-admin/css/dashboard.css', array(), '20090514' );
    443443    $styles->add( 'install', '/wp-admin/css/install.css', array(), '20090514' );
Note: See TracChangeset for help on using the changeset viewer.