Changeset 1147 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php
- Timestamp:
- 01/16/2015 12:14:43 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php
r1146 r1147 14 14 * as indicating support for post thumbnails. 15 15 */ 16 16 define('WPORGPATH', 'https://wordpress.org/'); 17 17 function wporg_themes_setup() { 18 18 global $themes_allowedtags, $theme_field_defaults; … … 82 82 83 83 if ( ! is_singular( 'page' ) ) { 84 wp_enqueue_script( 'theme', self_admin_url( 'js/theme.js' ), array( 'wp-backbone' ) );85 wp_enqueue_script( 'wporg-theme', get_template_directory_uri() . '/js/theme.js', array( 'theme' ) );84 wp_enqueue_script( 'theme', self_admin_url( 'js/theme.js' ), array( 'wp-backbone' ), false, true ); 85 wp_enqueue_script( 'wporg-theme', get_template_directory_uri() . '/js/theme.js', array( 'theme' ), false, true ); 86 86 87 87 wp_localize_script( 'theme', '_wpThemeSettings', array( … … 92 92 'canInstall' => false, 93 93 'installURI' => null, 94 'adminUrl' => parse_url( home_url(), PHP_URL_PATH),94 'adminUrl' => trailingslashit( parse_url( home_url(), PHP_URL_PATH ) ), 95 95 ), 96 96 'l10n' => array( … … 240 240 get_template_part( 'view-templates/theme-single' ); 241 241 } 242 add_action( 'wp_ head', 'wporg_themes_view_templates' );242 add_action( 'wp_footer', 'wporg_themes_view_templates' );
Note: See TracChangeset
for help on using the changeset viewer.