Ticket #46981: 46981.1.diff
File 46981.1.diff, 19.6 KB (added by , 5 years ago) |
---|
-
src/wp-content/themes/twentyeleven/header.php
51 51 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> 52 52 <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>"> 53 53 <!--[if lt IE 9]> 54 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js " type="text/javascript"></script>54 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js?ver=3.7.0" type="text/javascript"></script> 55 55 <![endif]--> 56 56 <?php 57 57 /* -
src/wp-content/themes/twentyeleven/inc/theme-options.php
18 18 */ 19 19 function twentyeleven_admin_enqueue_scripts( $hook_suffix ) { 20 20 wp_enqueue_style( 'twentyeleven-theme-options', get_template_directory_uri() . '/inc/theme-options.css', false, '2011-04-28' ); 21 wp_enqueue_script( 'twentyeleven-theme-options', get_template_directory_uri() . '/inc/theme-options.js', array( 'farbtastic' ), '2011 -06-10' );21 wp_enqueue_script( 'twentyeleven-theme-options', get_template_directory_uri() . '/inc/theme-options.js', array( 'farbtastic' ), '20110610' ); 22 22 wp_enqueue_style( 'farbtastic' ); 23 23 } 24 24 add_action( 'admin_print_styles-appearance_page_theme_options', 'twentyeleven_admin_enqueue_scripts' ); -
src/wp-content/themes/twentyeleven/showcase.php
16 16 */ 17 17 18 18 // Enqueue showcase script for the slider 19 wp_enqueue_script( 'twentyeleven-showcase', get_template_directory_uri() . '/js/showcase.js', array( 'jquery' ), '2011 -04-28' );19 wp_enqueue_script( 'twentyeleven-showcase', get_template_directory_uri() . '/js/showcase.js', array( 'jquery' ), '20110429' ); 20 20 21 21 get_header(); ?> 22 22 -
src/wp-content/themes/twentyfifteen/functions.php
380 380 wp_enqueue_style( 'twentyfifteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentyfifteen-style' ), '20141010' ); 381 381 wp_style_add_data( 'twentyfifteen-ie7', 'conditional', 'lt IE 8' ); 382 382 383 wp_enqueue_script( 'twentyfifteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '201410 10', true );383 wp_enqueue_script( 'twentyfifteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20141028', true ); 384 384 385 385 if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { 386 386 wp_enqueue_script( 'comment-reply' ); 387 387 } 388 388 389 389 if ( is_singular() && wp_attachment_is_image() ) { 390 wp_enqueue_script( 'twentyfifteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20141 010' );390 wp_enqueue_script( 'twentyfifteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20141210' ); 391 391 } 392 392 393 wp_enqueue_script( 'twentyfifteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '201 50330', true );393 wp_enqueue_script( 'twentyfifteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20171218', true ); 394 394 wp_localize_script( 395 395 'twentyfifteen-script', 396 396 'screenReaderText', -
src/wp-content/themes/twentyfifteen/header.php
16 16 <link rel="profile" href="http://gmpg.org/xfn/11"> 17 17 <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>"> 18 18 <!--[if lt IE 9]> 19 <script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js "></script>19 <script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js?ver=3.7.0"></script> 20 20 <![endif]--> 21 21 <?php wp_head(); ?> 22 22 </head> -
src/wp-content/themes/twentyfourteen/functions.php
330 330 } 331 331 332 332 if ( is_singular() && wp_attachment_is_image() ) { 333 wp_enqueue_script( 'twentyfourteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '201 30402' );333 wp_enqueue_script( 'twentyfourteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20150120' ); 334 334 } 335 335 336 336 if ( is_active_sidebar( 'sidebar-3' ) ) { … … 338 338 } 339 339 340 340 if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) ) { 341 wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '201 31205', true );341 wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20150120', true ); 342 342 wp_localize_script( 343 343 'twentyfourteen-slider', 344 344 'featuredSliderDefaults', … … 349 349 ); 350 350 } 351 351 352 wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '201 50315', true );352 wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20171218', true ); 353 353 } 354 354 add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' ); 355 355 -
src/wp-content/themes/twentyfourteen/header.php
25 25 <link rel="profile" href="http://gmpg.org/xfn/11"> 26 26 <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>"> 27 27 <!--[if lt IE 9]> 28 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js "></script>28 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js?ver=3.7.0"></script> 29 29 <![endif]--> 30 30 <?php wp_head(); ?> 31 31 </head> -
src/wp-content/themes/twentyfourteen/inc/customizer.php
139 139 * @since Twenty Fourteen 1.0 140 140 */ 141 141 function twentyfourteen_customize_preview_js() { 142 wp_enqueue_script( 'twentyfourteen_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '201 31205', true );142 wp_enqueue_script( 'twentyfourteen_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20141015', true ); 143 143 } 144 144 add_action( 'customize_preview_init', 'twentyfourteen_customize_preview_js' ); 145 145 -
src/wp-content/themes/twentyfourteen/inc/featured-content.php
433 433 * @since Twenty Fourteen 1.0 434 434 */ 435 435 public static function enqueue_scripts() { 436 wp_enqueue_script( 'featured-content-suggest', get_template_directory_uri() . '/js/featured-content-admin.js', array( 'jquery', 'suggest' ), '20131 022', true );436 wp_enqueue_script( 'featured-content-suggest', get_template_directory_uri() . '/js/featured-content-admin.js', array( 'jquery', 'suggest' ), '20131205', true ); 437 437 } 438 438 439 439 /** -
src/wp-content/themes/twentynineteen/functions.php
222 222 wp_style_add_data( 'twentynineteen-style', 'rtl', 'replace' ); 223 223 224 224 if ( has_nav_menu( 'menu-1' ) ) { 225 wp_enqueue_script( 'twentynineteen-priority-menu', get_theme_file_uri( '/js/priority-menu.js' ), array(), ' 1.1', true );226 wp_enqueue_script( 'twentynineteen-touch-navigation', get_theme_file_uri( '/js/touch-keyboard-navigation.js' ), array(), ' 1.1', true );225 wp_enqueue_script( 'twentynineteen-priority-menu', get_theme_file_uri( '/js/priority-menu.js' ), array(), '20181214', true ); 226 wp_enqueue_script( 'twentynineteen-touch-navigation', get_theme_file_uri( '/js/touch-keyboard-navigation.js' ), array(), '20181231', true ); 227 227 } 228 228 229 229 wp_enqueue_style( 'twentynineteen-print-style', get_template_directory_uri() . '/print.css', array(), wp_get_theme()->get( 'Version' ), 'print' ); -
src/wp-content/themes/twentynineteen/inc/customizer.php
125 125 * Bind JS handlers to instantly live-preview changes. 126 126 */ 127 127 function twentynineteen_customize_preview_js() { 128 wp_enqueue_script( 'twentynineteen-customize-preview', get_theme_file_uri( '/js/customize-preview.js' ), array( 'customize-preview' ), '201812 31', true );128 wp_enqueue_script( 'twentynineteen-customize-preview', get_theme_file_uri( '/js/customize-preview.js' ), array( 'customize-preview' ), '20181214', true ); 129 129 } 130 130 add_action( 'customize_preview_init', 'twentynineteen_customize_preview_js' ); 131 131 … … 133 133 * Load dynamic logic for the customizer controls area. 134 134 */ 135 135 function twentynineteen_panels_js() { 136 wp_enqueue_script( 'twentynineteen-customize-controls', get_theme_file_uri( '/js/customize-controls.js' ), array(), '201812 31', true );136 wp_enqueue_script( 'twentynineteen-customize-controls', get_theme_file_uri( '/js/customize-controls.js' ), array(), '20181214', true ); 137 137 } 138 138 add_action( 'customize_controls_enqueue_scripts', 'twentynineteen_panels_js' ); 139 139 -
src/wp-content/themes/twentyseventeen/functions.php
467 467 wp_style_add_data( 'twentyseventeen-ie8', 'conditional', 'lt IE 9' ); 468 468 469 469 // Load the html5 shiv. 470 wp_enqueue_script( 'html5', get_theme_file_uri( '/assets/js/html5.js' ), array(), ' 3.7.3' );470 wp_enqueue_script( 'html5', get_theme_file_uri( '/assets/js/html5.js' ), array(), '20161020' ); 471 471 wp_script_add_data( 'html5', 'conditional', 'lt IE 9' ); 472 472 473 wp_enqueue_script( 'twentyseventeen-skip-link-focus-fix', get_theme_file_uri( '/assets/js/skip-link-focus-fix.js' ), array(), ' 1.0', true );473 wp_enqueue_script( 'twentyseventeen-skip-link-focus-fix', get_theme_file_uri( '/assets/js/skip-link-focus-fix.js' ), array(), '20161114', true ); 474 474 475 475 $twentyseventeen_l10n = array( 476 476 'quote' => twentyseventeen_get_svg( array( 'icon' => 'quote-right' ) ), 477 477 ); 478 478 479 479 if ( has_nav_menu( 'top' ) ) { 480 wp_enqueue_script( 'twentyseventeen-navigation', get_theme_file_uri( '/assets/js/navigation.js' ), array( 'jquery' ), ' 1.0', true );480 wp_enqueue_script( 'twentyseventeen-navigation', get_theme_file_uri( '/assets/js/navigation.js' ), array( 'jquery' ), '20161203', true ); 481 481 $twentyseventeen_l10n['expand'] = __( 'Expand child menu', 'twentyseventeen' ); 482 482 $twentyseventeen_l10n['collapse'] = __( 'Collapse child menu', 'twentyseventeen' ); 483 483 $twentyseventeen_l10n['icon'] = twentyseventeen_get_svg( … … 488 488 ); 489 489 } 490 490 491 wp_enqueue_script( 'twentyseventeen-global', get_theme_file_uri( '/assets/js/global.js' ), array( 'jquery' ), ' 1.0', true );491 wp_enqueue_script( 'twentyseventeen-global', get_theme_file_uri( '/assets/js/global.js' ), array( 'jquery' ), '20190121', true ); 492 492 493 493 wp_enqueue_script( 'jquery-scrollto', get_theme_file_uri( '/assets/js/jquery.scrollTo.js' ), array( 'jquery' ), '2.1.2', true ); 494 494 -
src/wp-content/themes/twentyseventeen/inc/customizer.php
236 236 * Bind JS handlers to instantly live-preview changes. 237 237 */ 238 238 function twentyseventeen_customize_preview_js() { 239 wp_enqueue_script( 'twentyseventeen-customize-preview', get_theme_file_uri( '/assets/js/customize-preview.js' ), array( 'customize-preview' ), ' 1.0', true );239 wp_enqueue_script( 'twentyseventeen-customize-preview', get_theme_file_uri( '/assets/js/customize-preview.js' ), array( 'customize-preview' ), '20161002', true ); 240 240 } 241 241 add_action( 'customize_preview_init', 'twentyseventeen_customize_preview_js' ); 242 242 … … 244 244 * Load dynamic logic for the customizer controls area. 245 245 */ 246 246 function twentyseventeen_panels_js() { 247 wp_enqueue_script( 'twentyseventeen-customize-controls', get_theme_file_uri( '/assets/js/customize-controls.js' ), array(), ' 1.0', true );247 wp_enqueue_script( 'twentyseventeen-customize-controls', get_theme_file_uri( '/assets/js/customize-controls.js' ), array(), '20161020', true ); 248 248 } 249 249 add_action( 'customize_controls_enqueue_scripts', 'twentyseventeen_panels_js' ); -
src/wp-content/themes/twentysixteen/functions.php
388 388 wp_enqueue_script( 'twentysixteen-html5', get_template_directory_uri() . '/js/html5.js', array(), '3.7.3' ); 389 389 wp_script_add_data( 'twentysixteen-html5', 'conditional', 'lt IE 9' ); 390 390 391 wp_enqueue_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '201 60816', true );391 wp_enqueue_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20170530', true ); 392 392 393 393 if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { 394 394 wp_enqueue_script( 'comment-reply' ); 395 395 } 396 396 397 397 if ( is_singular() && wp_attachment_is_image() ) { 398 wp_enqueue_script( 'twentysixteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '201 60816' );398 wp_enqueue_script( 'twentysixteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20170530' ); 399 399 } 400 400 401 wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '201812 30', true );401 wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20181217', true ); 402 402 403 403 wp_localize_script( 404 404 'twentysixteen-script', -
src/wp-content/themes/twentysixteen/inc/customizer.php
484 484 * @since Twenty Sixteen 1.0 485 485 */ 486 486 function twentysixteen_customize_control_js() { 487 wp_enqueue_script( 'color-scheme-control', get_template_directory_uri() . '/js/color-scheme-control.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), '201 60816', true );487 wp_enqueue_script( 'color-scheme-control', get_template_directory_uri() . '/js/color-scheme-control.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), '20170530', true ); 488 488 wp_localize_script( 'color-scheme-control', 'colorScheme', twentysixteen_get_color_schemes() ); 489 489 } 490 490 add_action( 'customize_controls_enqueue_scripts', 'twentysixteen_customize_control_js' ); … … 495 495 * @since Twenty Sixteen 1.0 496 496 */ 497 497 function twentysixteen_customize_preview_js() { 498 wp_enqueue_script( 'twentysixteen-customize-preview', get_template_directory_uri() . '/js/customize-preview.js', array( 'customize-preview' ), '201 60816', true );498 wp_enqueue_script( 'twentysixteen-customize-preview', get_template_directory_uri() . '/js/customize-preview.js', array( 'customize-preview' ), '20170530', true ); 499 499 } 500 500 add_action( 'customize_preview_init', 'twentysixteen_customize_preview_js' ); 501 501 -
src/wp-content/themes/twentythirteen/functions.php
272 272 } 273 273 274 274 // Loads JavaScript file with functionality specific to Twenty Thirteen. 275 wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '201 60717', true );275 wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20171218', true ); 276 276 277 277 // Add Source Sans Pro and Bitter fonts, used in the main stylesheet. 278 278 wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null ); -
src/wp-content/themes/twentythirteen/header.php
25 25 <link rel="profile" href="http://gmpg.org/xfn/11"> 26 26 <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>"> 27 27 <!--[if lt IE 9]> 28 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js "></script>28 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js?ver=3.7.0"></script> 29 29 <![endif]--> 30 30 <?php wp_head(); ?> 31 31 </head> -
src/wp-content/themes/twentytwelve/functions.php
191 191 } 192 192 193 193 // Adds JavaScript for handling the navigation menu hide-and-show behavior. 194 wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '2014 0711', true );194 wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20141205', true ); 195 195 196 196 $font_url = twentytwelve_get_font_url(); 197 197 if ( ! empty( $font_url ) ) { -
src/wp-content/themes/twentytwelve/header.php
26 26 <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>"> 27 27 <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?> 28 28 <!--[if lt IE 9]> 29 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js " type="text/javascript"></script>29 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js?ver=3.7.0" type="text/javascript"></script> 30 30 <![endif]--> 31 31 <?php wp_head(); ?> 32 32 </head>