Making WordPress.org

Ticket #2841: 2841.patch

File 2841.patch, 1.8 KB (added by SergeyBiryukov, 8 years ago)
  • wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php

     
    4848
    4949        if ( ! is_singular( 'page' ) ) {
    5050                wp_enqueue_script( 'google-charts-loader', 'https://www.gstatic.com/charts/loader.js', array(), null, true );
    51                 wp_enqueue_script( 'wporg-theme', get_template_directory_uri() . "/js/theme{$suffix}.js", array( 'wp-backbone' ), 11, true );
     51                wp_enqueue_script( 'wporg-theme', get_template_directory_uri() . "/js/theme{$suffix}.js", array( 'wp-backbone' ), 12, true );
    5252
    5353                wp_localize_script( 'wporg-theme', '_wpThemeSettings', array(
    5454                        'themes'   => false,
  • wordpress.org/public_html/wp-content/themes/pub/wporg-themes/js/theme.js

     
    15291529                                return this.addFilter();
    15301530                        }
    15311531
    1532                         // If the translations of the filters pushes the group height
    1533                         // over the min-height (710px), increase them all.
    1534                         setTimeout( function() {
    1535                                 var filterGroupHeight = 0;
    1536 
    1537                                 filterGroupHeight = _.reduce( $( '.filter-group' ), function( max, item ) {
    1538                                         return Math.max( max, $( item ).outerHeight() );
    1539                                 }, filterGroupHeight );
    1540 
    1541                                 if ( filterGroupHeight > 710 ) {
    1542                                         $( '.filter-group' ).outerHeight( filterGroupHeight );
    1543                                 }
    1544                         }, 0 );
    1545 
    15461532                        this.clearSearch();
    15471533
    15481534                        $( 'body' ).toggleClass( 'show-filters' );