[wp-meta] [Making WordPress.org] #1952: Restore locale suggestion banner on support forums

Making WordPress.org noreply at wordpress.org
Mon Mar 16 05:45:20 UTC 2020


#1952: Restore locale suggestion banner on support forums
----------------------------+---------------------
 Reporter:  SergeyBiryukov  |       Owner:  (none)
     Type:  defect          |      Status:  new
 Priority:  normal          |   Milestone:  Q1
Component:  Support Forums  |  Resolution:
 Keywords:  needs-patch     |
----------------------------+---------------------

Comment (by dufresnesteven):

 I don't have access to provide a patch but here is the research:

 **`/support` is missing the following:**
 \\
 \\
 **Wrapper**
 `<div id="lang-guess-wrap"></div>`
 \\
 \\
 **Init code**
 {{{
 (function($){
         $.ajax({
                 url : '/lang-guess/lang-guess-ajax.php?uri=%2F',
                 dataType: 'html'
         }).done(function(data) {
                 if ( ! data ) return;
                 $(document).ready( function() {
                         $('#lang-guess-wrap').html(data);
                 });
         });
 })(jQuery);
 }}}
 \\
 \\
 **Styles**
 ''To make it match the homepage.''

 {{{
 #lang-guess {
         width: inherit;
         max-width: inherit;
         margin: 0;
         border: inherit;
         font: inherit;
         padding: .5rem;
         background: #C7E8CA;
         text-align: center;
         font-size: .8rem;
         -moz-border-radius: inherit;
         -khtml-border-radius: inherit;
         -webkit-border-radius: inherit;
         border-radius: inherit
 }

 #lang-guess a {
         text-decoration: underline
 }
 }}}

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/1952#comment:8>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list