WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/24/2009 03:46:09 PM (11 years ago)
Author:
azaozz
Message:

Delete widgets when dragged back to Available Widgets, add ui.droppable.js and ui.selectable.js, see #9511

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/themes.php

    r11443 r11445  
    4545<?php if ( ! validate_current_theme() ) : ?>
    4646<div id="message1" class="updated fade"><p><?php _e('The active theme is broken.  Reverting to the default theme.'); ?></p></div>
    47 <?php elseif ( isset($_GET['activated']) ) : ?>
    48 <div id="message2" class="updated fade"><p><?php printf(__('New theme activated. <a href="%s">Visit site</a>'), get_bloginfo('url') . '/'); ?></p></div>
    49 <?php elseif ( isset($_GET['deleted']) ) : ?>
     47<?php elseif ( isset($_GET['activated']) ) :
     48        if ( isset($wp_registered_sidebars) && count( (array) $wp_registered_sidebars ) ) { ?>
     49<div id="message2" class="updated fade"><p><?php printf(__('New theme activated. This theme supports widgets, please visit the <a href="%s">widgets settings page</a> to configure them.'), admin_url('widgets.php') ); ?></p></div><?php
     50        } else { ?>
     51<div id="message2" class="updated fade"><p><?php printf(__('New theme activated. <a href="%s">Visit site</a>'), get_bloginfo('url') . '/'); ?></p></div><?php
     52        }
     53    elseif ( isset($_GET['deleted']) ) : ?>
    5054<div id="message3" class="updated fade"><p><?php _e('Theme deleted.') ?></p></div>
    5155<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.