Changeset 4119 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php
- Timestamp:
- 09/23/2016 03:42:18 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php
r2580 r4119 5 5 * @package wporg-login 6 6 */ 7 8 9 7 10 8 /** … … 15 13 } 16 14 add_action( 'after_setup_theme', 'wporg_login_setup' ); 17 18 19 15 20 16 /** … … 31 27 add_filter( 'body_class', 'wporg_login_body_class' ); 32 28 33 34 35 29 /** 36 30 * Remove the toolbar. … … 40 34 } 41 35 add_action( 'init', 'wporg_login_init' ); 42 43 36 44 37 /** … … 50 43 add_action( 'login_init', 'wporg_login_replace_css' ); 51 44 52 53 45 /** 54 46 * Enqueue scripts and styles. 55 47 */ 56 48 function wporg_login_scripts() { 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 remove_action( 'wp_head','wp_oembed_add_discovery_links' );77 49 $script_debug = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG; 50 $suffix = $script_debug ? '' : '.min'; 51 52 // Concatenates core scripts when possible. 53 if ( ! $script_debug ) { 54 $GLOBALS['concatenate_scripts'] = true; 55 } 56 57 wp_enqueue_style( 'wporg-normalize', get_template_directory_uri() . '/stylesheets/normalize.css', 3 ); 58 wp_enqueue_style( 'wporg-login', get_template_directory_uri() . '/stylesheets/login.css', array( 'login', 'dashicons', 'l10n' ), 2.3 ); 59 60 // No emoji support needed. 61 remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); 62 remove_action( 'wp_print_styles', 'print_emoji_styles' ); 63 64 // No Jetpack styles needed. 65 add_filter( 'jetpack_implode_frontend_css', '__return_false' ); 66 67 // No embeds needed. 68 remove_action( 'wp_head', 'wp_oembed_add_discovery_links' ); 69 remove_action( 'wp_head', 'wp_oembed_add_host_js' ); 78 70 } 79 71 add_action( 'wp_enqueue_scripts', 'wporg_login_scripts' );
Note: See TracChangeset
for help on using the changeset viewer.