Changeset 3695 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php
- Timestamp:
- 07/19/2016 07:42:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php
r3559 r3695 82 82 'currentPlugin' => is_singular( 'plugin' ) ? get_queried_object()->post_name : '', 83 83 ) ); 84 85 // wp_enqueue_script( 'wporg-plugins-client', get_template_directory_uri() . '/js/theme.js', array(), false, true ); 86 wp_localize_script( 'wporg-plugins-client', 'app_data', array( 87 'api_url' => untrailingslashit( rest_url() ), 88 'nonce' => wp_create_nonce( 'wp_rest' ), 89 ) ); 90 84 91 } 85 92 add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\scripts' );
Note: See TracChangeset
for help on using the changeset viewer.