[wp-trac] [WordPress Trac] #41386: Text Widget - Wording - Legacy Mode 4.8.1 beta

WordPress Trac noreply at wordpress.org
Sun Jul 23 01:14:03 UTC 2017


#41386: Text Widget - Wording - Legacy Mode  4.8.1 beta
-------------------------+--------------------
 Reporter:  fullworks    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.8.1
Component:  Widgets      |     Version:  4.8
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+--------------------

Comment (by westonruter):

 @melchoyce the initial message could say “may contain” whereas after it
 could say “may have contained”? Note the updated message would only show
 the next time the user reloaded the page, with something like the
 following:

 {{{#!php
 <div class="notice inline notice-info notice-alt">
         <?php if ( $created_since_48 ) : ?>
                 <p><?php _e( 'This widget may have contained 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 contain code that may work
 better in the new “Custom HTML” widget. How about trying that
 widget instead?' ); ?></p>
         <?php endif; ?>
 </div>
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41386#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list