WordPress.org

Making WordPress.org

Changeset 4376


Ignore:
Timestamp:
11/18/2016 06:01:47 AM (4 years ago)
Author:
tellyworth
Message:

Plugin Directory: enable the React screenshot viewer by default.

Fixes #2246

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php

    r4327 r4376  
    103103    }
    104104
    105     if ( isset( $_REQUEST['react'] ) ) {
     105    if ( !isset( $_REQUEST['noreact'] ) ) {
    106106        wp_enqueue_script( 'wporg-plugins-client', get_template_directory_uri() . '/js/theme.js', array(), false, true );
    107107        wp_localize_script( 'wporg-plugins-client', 'app_data', array(
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/section-accordion.js

    r4303 r4376  
    1717        initial_size: function( selector ) {
    1818            $( selector ).each( function( i, el) {
    19                 if ( $(el).height() / el.scrollHeight > 0.8 ) {
     19                if ( $(el).height() / el.scrollHeight > 0.8 || el.id == 'screenshots' ) {
    2020                    // Force the section to expand, and hide its button
    2121                    $(el).toggleClass( 'toggled' ).addClass('short-content').attr( 'aria-expanded', true );
Note: See TracChangeset for help on using the changeset viewer.