Widgets: Improve notice in Text widget's legacy mode.
Retains 'new' in notice on 4.8 branch, in contrast with [41134]. Also fixes phpunit test which broke in [41132]. Merges [41134] onto 4.8 branch. Props melchoyce, westonruter. See #41394, #35243, #40951, #40907. Fixes #41386 for 4.8.1. Built from https://develop.svn.wordpress.org/branches/4.8@41135 git-svn-id: http://core.svn.wordpress.org/branches/4.8@40975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fd423f720e
commit
a17fcecfda
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.8.1-beta1-41133';
|
||||
$wp_version = '4.8.1-beta1-41135';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
|
@ -360,7 +360,11 @@ class WP_Widget_Text extends WP_Widget {
|
|||
<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $instance['title'] ); ?>"/>
|
||||
</p>
|
||||
<div class="notice inline notice-info notice-alt">
|
||||
<?php if ( ! isset( $instance['visual'] ) ) : ?>
|
||||
<p><?php _e( 'This widget may contain code that may work better in the new “Custom HTML” widget. How about trying that widget instead?' ); ?></p>
|
||||
<?php else : ?>
|
||||
<p><?php _e( 'This widget may have contained code that may work better in the new “Custom HTML” widget. If you haven’t yet, how about trying that widget instead?' ); ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<p>
|
||||
<label for="<?php echo $this->get_field_id( 'text' ); ?>"><?php _e( 'Content:' ); ?></label>
|
||||
|
|
Loading…
Reference in New Issue