wp-content/themes/twentyfifteen/functions.php:431Enqueues scripts and styles.
function twentyfifteen_scripts() { // Add custom fonts, used in the main stylesheet. $font_version = ( 0 === strpos( (string) twentyfifteen_fonts_url(), get_template_directory_uri() . '/' ) ) ? '20230328' : null; wp_enqueue_style( 'twentyfifteen-fonts', twentyfifteen_fonts_url(), array(), $font_version ); // Add Genericons, used in the main stylesheet. wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '20251101' ); // Load our main stylesheet. wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri(), array(), '20260520' ); // Theme block stylesheet. wp_enqueue_style( 'twentyfifteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfifteen-style' ), '20240715' ); // Register handles for removed stylesheets and scripts. wp_register_style( 'twentyfifteen-ie', false, array( 'twentyfifteen-style' ) ); wp_register_style( 'twentyfifteen-ie7', false, array( 'twentyfifteen-style' ) ); wp_register_script( 'twentyfifteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20230526', array( 'in_footer' => true ) ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } if ( is_singular() && wp_attachment_is_image() ) { wp_enqueue_script( 'twentyfifteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20141210' ); } wp_enqueue_script( 'twentyfifteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20250729', array( 'in_footer' => false, // Because involves header. 'strategy' => 'defer', ) ); wp_localize_script( 'twentyfifteen-script', 'screenReaderText', array( /* translators: Hidden accessibility text. */ 'expand' => '<span class="screen-reader-text">' . __( 'expand child menu', 'twentyfifteen' ) . '</span>', /* translators: Hidden accessibility text. */ 'collapse' => '<span class="screen-reader-text">' . __( 'collapse child menu', 'twentyfifteen' ) . '</span>', ) );}Introduced in Twenty Fifteen 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentyfifteen/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.