WordPress.org

Make WordPress Core

Changeset 21972


Ignore:
Timestamp:
09/24/2012 04:31:41 PM (6 years ago)
Author:
nacin
Message:

Remove "This theme supports widgets..." from the theme activation notice. props ryanimel. fixes #19787.

File:
1 edited

Legend:

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

    r21969 r21972  
    109109<?php elseif ( isset($_GET['activated']) ) :
    110110        if ( isset( $_GET['previewed'] ) ) { ?>
    111         <div id="message2" class="updated"><p><?php printf( __( 'Settings saved and theme activated. <a href="%s">Visit site</a>.' ), home_url( '/' ) ); ?></p></div>
    112         <?php } elseif ( isset($wp_registered_sidebars) && count( (array) $wp_registered_sidebars ) && current_user_can('edit_theme_options') ) { ?>
    113 <div id="message2" class="updated"><p><?php printf( __('New theme activated. This theme supports widgets, please visit the <a href="%s">widgets settings</a> screen to configure them.'), admin_url( 'widgets.php' ) ); ?></p></div><?php
    114         } else { ?>
     111        <div id="message2" class="updated"><p><?php printf( __( 'Settings saved and theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div>
     112        <?php } else { ?>
    115113<div id="message2" class="updated"><p><?php printf( __( 'New theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div><?php
    116114        }
Note: See TracChangeset for help on using the changeset viewer.