Making WordPress.org

Changeset 4321


Ignore:
Timestamp:
11/02/2016 08:56:24 PM (8 years ago)
Author:
tellyworth
Message:

Plugin Directory theme: enable the React screenshot viewer.

See #1828

File:
1 edited

Legend:

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

    r4263 r4321  
    103103    }
    104104
    105     if ( isset( $_REQUEST['react'] ) ) {
    106         wp_enqueue_script( 'wporg-plugins-client', get_template_directory_uri() . '/js/theme.js', array(), false, true );
    107         wp_localize_script( 'wporg-plugins-client', 'app_data', array(
    108             'api_url' => untrailingslashit( rest_url() ),
    109             'nonce'   => wp_create_nonce( 'wp_rest' ),
    110             'base'    => get_blog_details()->path,
    111         ) );
    112     }
     105    wp_enqueue_script( 'wporg-plugins-client', get_template_directory_uri() . '/js/theme.js', array(), false, true );
     106    wp_localize_script( 'wporg-plugins-client', 'app_data', array(
     107        'api_url' => untrailingslashit( rest_url() ),
     108        'nonce'   => wp_create_nonce( 'wp_rest' ),
     109        'base'    => get_blog_details()->path,
     110    ) );
    113111
    114112}
Note: See TracChangeset for help on using the changeset viewer.