Changeset 4321
- Timestamp:
- 11/02/2016 08:56:24 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php
r4263 r4321 103 103 } 104 104 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 ) ); 113 111 114 112 }
Note: See TracChangeset
for help on using the changeset viewer.