Making WordPress.org


Ignore:
Timestamp:
05/01/2017 04:59:43 PM (8 years ago)
Author:
ocean90
Message:

Plugin Directory: Replace the #screenshot container when inserting the screenshot slider.

Fixes #2680.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/build.jsx

    r5024 r5454  
    2323
    2424if ( images.length > 0 ) {
     25    const temp = document.createElement( 'div');
     26    const container = document.querySelector( '.entry-content' );
     27
    2528    render(
    2629        <Screenshots screenshots={ images } />,
    27         document.getElementById( 'screenshots' )
     30        temp
    2831    );
     32
     33    container.replaceChild( temp.querySelector( '#screenshots' ), document.getElementById( 'screenshots' ) );
    2934}
Note: See TracChangeset for help on using the changeset viewer.