Bundled Themes: Bump script and style version numbers.
When existing scripts or styles are updated in default themes, the version numbers in the enqueues should also be bumped to make sure the old files don't cache. This update bumps version numbers for changes since version 5.0, for themes Twenty Eleven through Twenty Nineteen. Props laurelfulford. Merges [44382] to the 5.0 branch. Fixes #45679. Built from https://develop.svn.wordpress.org/branches/5.0@44434 git-svn-id: http://core.svn.wordpress.org/branches/5.0@44265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
86f3506479
commit
9fdc9c60c3
|
@ -282,7 +282,7 @@ endif; // twentyeleven_setup
|
||||||
*/
|
*/
|
||||||
function twentyeleven_scripts_styles() {
|
function twentyeleven_scripts_styles() {
|
||||||
// Theme block stylesheet.
|
// Theme block stylesheet.
|
||||||
wp_enqueue_style( 'twentyeleven-block-style', get_template_directory_uri() . '/blocks.css', array(), '20181018' );
|
wp_enqueue_style( 'twentyeleven-block-style', get_template_directory_uri() . '/blocks.css', array(), '20181230' );
|
||||||
}
|
}
|
||||||
add_action( 'wp_enqueue_scripts', 'twentyeleven_scripts_styles' );
|
add_action( 'wp_enqueue_scripts', 'twentyeleven_scripts_styles' );
|
||||||
|
|
||||||
|
@ -293,7 +293,7 @@ add_action( 'wp_enqueue_scripts', 'twentyeleven_scripts_styles' );
|
||||||
*/
|
*/
|
||||||
function twentyeleven_block_editor_styles() {
|
function twentyeleven_block_editor_styles() {
|
||||||
// Block styles.
|
// Block styles.
|
||||||
wp_enqueue_style( 'twentyeleven-block-editor-style', get_template_directory_uri() . '/editor-blocks.css' );
|
wp_enqueue_style( 'twentyeleven-block-editor-style', get_template_directory_uri() . '/editor-blocks.css', array(), '20181230' );
|
||||||
}
|
}
|
||||||
add_action( 'enqueue_block_editor_assets', 'twentyeleven_block_editor_styles' );
|
add_action( 'enqueue_block_editor_assets', 'twentyeleven_block_editor_styles' );
|
||||||
|
|
||||||
|
|
|
@ -333,7 +333,7 @@ function twentyfifteen_scripts() {
|
||||||
wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri() );
|
wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri() );
|
||||||
|
|
||||||
// Theme block stylesheet.
|
// Theme block stylesheet.
|
||||||
wp_enqueue_style( 'twentyfifteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfifteen-style' ), '20181018' );
|
wp_enqueue_style( 'twentyfifteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfifteen-style' ), '20181230' );
|
||||||
|
|
||||||
// Load the Internet Explorer specific stylesheet.
|
// Load the Internet Explorer specific stylesheet.
|
||||||
wp_enqueue_style( 'twentyfifteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfifteen-style' ), '20141010' );
|
wp_enqueue_style( 'twentyfifteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfifteen-style' ), '20141010' );
|
||||||
|
@ -368,7 +368,7 @@ add_action( 'wp_enqueue_scripts', 'twentyfifteen_scripts' );
|
||||||
*/
|
*/
|
||||||
function twentyfifteen_block_editor_styles() {
|
function twentyfifteen_block_editor_styles() {
|
||||||
// Block styles.
|
// Block styles.
|
||||||
wp_enqueue_style( 'twentyfifteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
|
wp_enqueue_style( 'twentyfifteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
|
||||||
// Add custom fonts.
|
// Add custom fonts.
|
||||||
wp_enqueue_style( 'twentyfifteen-fonts', twentyfifteen_fonts_url(), array(), null );
|
wp_enqueue_style( 'twentyfifteen-fonts', twentyfifteen_fonts_url(), array(), null );
|
||||||
}
|
}
|
||||||
|
|
|
@ -283,7 +283,7 @@ function twentyfourteen_scripts() {
|
||||||
wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri() );
|
wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri() );
|
||||||
|
|
||||||
// Theme block stylesheet.
|
// Theme block stylesheet.
|
||||||
wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20181018' );
|
wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20181230' );
|
||||||
|
|
||||||
// Load the Internet Explorer specific stylesheet.
|
// Load the Internet Explorer specific stylesheet.
|
||||||
wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style' ), '20131205' );
|
wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style' ), '20131205' );
|
||||||
|
@ -355,7 +355,7 @@ add_filter( 'wp_resource_hints', 'twentyfourteen_resource_hints', 10, 2 );
|
||||||
*/
|
*/
|
||||||
function twentyfourteen_block_editor_styles() {
|
function twentyfourteen_block_editor_styles() {
|
||||||
// Block styles.
|
// Block styles.
|
||||||
wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
|
wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
|
||||||
// Add custom fonts.
|
// Add custom fonts.
|
||||||
wp_enqueue_style( 'twentyfourteen-fonts', twentyfourteen_font_url(), array(), null );
|
wp_enqueue_style( 'twentyfourteen-fonts', twentyfourteen_font_url(), array(), null );
|
||||||
}
|
}
|
||||||
|
|
|
@ -222,8 +222,8 @@ function twentynineteen_scripts() {
|
||||||
wp_style_add_data( 'twentynineteen-style', 'rtl', 'replace' );
|
wp_style_add_data( 'twentynineteen-style', 'rtl', 'replace' );
|
||||||
|
|
||||||
if ( has_nav_menu( 'menu-1' ) ) {
|
if ( has_nav_menu( 'menu-1' ) ) {
|
||||||
wp_enqueue_script( 'twentynineteen-priority-menu', get_theme_file_uri( '/js/priority-menu.js' ), array(), '1.0', true );
|
wp_enqueue_script( 'twentynineteen-priority-menu', get_theme_file_uri( '/js/priority-menu.js' ), array(), '1.1', true );
|
||||||
wp_enqueue_script( 'twentynineteen-touch-navigation', get_theme_file_uri( '/js/touch-keyboard-navigation.js' ), array(), '1.0', true );
|
wp_enqueue_script( 'twentynineteen-touch-navigation', get_theme_file_uri( '/js/touch-keyboard-navigation.js' ), array(), '1.1', true );
|
||||||
}
|
}
|
||||||
|
|
||||||
wp_enqueue_style( 'twentynineteen-print-style', get_template_directory_uri() . '/print.css', array(), wp_get_theme()->get( 'Version' ), 'print' );
|
wp_enqueue_style( 'twentynineteen-print-style', get_template_directory_uri() . '/print.css', array(), wp_get_theme()->get( 'Version' ), 'print' );
|
||||||
|
@ -257,7 +257,7 @@ add_action( 'wp_print_footer_scripts', 'twentynineteen_skip_link_focus_fix' );
|
||||||
*/
|
*/
|
||||||
function twentynineteen_editor_customizer_styles() {
|
function twentynineteen_editor_customizer_styles() {
|
||||||
|
|
||||||
wp_enqueue_style( 'twentynineteen-editor-customizer-styles', get_theme_file_uri( '/style-editor-customizer.css' ), false, '1.0', 'all' );
|
wp_enqueue_style( 'twentynineteen-editor-customizer-styles', get_theme_file_uri( '/style-editor-customizer.css' ), false, '1.1', 'all' );
|
||||||
|
|
||||||
if ( 'custom' === get_theme_mod( 'primary_color' ) ) {
|
if ( 'custom' === get_theme_mod( 'primary_color' ) ) {
|
||||||
// Include color patterns.
|
// Include color patterns.
|
||||||
|
|
|
@ -125,7 +125,7 @@ function twentynineteen_customize_partial_blogdescription() {
|
||||||
* Bind JS handlers to instantly live-preview changes.
|
* Bind JS handlers to instantly live-preview changes.
|
||||||
*/
|
*/
|
||||||
function twentynineteen_customize_preview_js() {
|
function twentynineteen_customize_preview_js() {
|
||||||
wp_enqueue_script( 'twentynineteen-customize-preview', get_theme_file_uri( '/js/customize-preview.js' ), array( 'customize-preview' ), '20181108', true );
|
wp_enqueue_script( 'twentynineteen-customize-preview', get_theme_file_uri( '/js/customize-preview.js' ), array( 'customize-preview' ), '20181231', true );
|
||||||
}
|
}
|
||||||
add_action( 'customize_preview_init', 'twentynineteen_customize_preview_js' );
|
add_action( 'customize_preview_init', 'twentynineteen_customize_preview_js' );
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ add_action( 'customize_preview_init', 'twentynineteen_customize_preview_js' );
|
||||||
* Load dynamic logic for the customizer controls area.
|
* Load dynamic logic for the customizer controls area.
|
||||||
*/
|
*/
|
||||||
function twentynineteen_panels_js() {
|
function twentynineteen_panels_js() {
|
||||||
wp_enqueue_script( 'twentynineteen-customize-controls', get_theme_file_uri( '/js/customize-controls.js' ), array(), '20181031', true );
|
wp_enqueue_script( 'twentynineteen-customize-controls', get_theme_file_uri( '/js/customize-controls.js' ), array(), '20181231', true );
|
||||||
}
|
}
|
||||||
add_action( 'customize_controls_enqueue_scripts', 'twentynineteen_panels_js' );
|
add_action( 'customize_controls_enqueue_scripts', 'twentynineteen_panels_js' );
|
||||||
|
|
||||||
|
|
|
@ -425,7 +425,7 @@ function twentyseventeen_scripts() {
|
||||||
wp_enqueue_style( 'twentyseventeen-style', get_stylesheet_uri() );
|
wp_enqueue_style( 'twentyseventeen-style', get_stylesheet_uri() );
|
||||||
|
|
||||||
// Theme block stylesheet.
|
// Theme block stylesheet.
|
||||||
wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '1.0' );
|
wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '1.1' );
|
||||||
|
|
||||||
// Load the dark colorscheme.
|
// Load the dark colorscheme.
|
||||||
if ( 'dark' === get_theme_mod( 'colorscheme', 'light' ) || is_customize_preview() ) {
|
if ( 'dark' === get_theme_mod( 'colorscheme', 'light' ) || is_customize_preview() ) {
|
||||||
|
@ -478,7 +478,7 @@ add_action( 'wp_enqueue_scripts', 'twentyseventeen_scripts' );
|
||||||
*/
|
*/
|
||||||
function twentyseventeen_block_editor_styles() {
|
function twentyseventeen_block_editor_styles() {
|
||||||
// Block styles.
|
// Block styles.
|
||||||
wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ) );
|
wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ), array(), '1.1' );
|
||||||
// Add custom fonts.
|
// Add custom fonts.
|
||||||
wp_enqueue_style( 'twentyseventeen-fonts', twentyseventeen_fonts_url(), array(), null );
|
wp_enqueue_style( 'twentyseventeen-fonts', twentyseventeen_fonts_url(), array(), null );
|
||||||
}
|
}
|
||||||
|
|
|
@ -326,7 +326,7 @@ function twentysixteen_scripts() {
|
||||||
wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri() );
|
wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri() );
|
||||||
|
|
||||||
// Theme block stylesheet.
|
// Theme block stylesheet.
|
||||||
wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20181018' );
|
wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20181230' );
|
||||||
|
|
||||||
// Load the Internet Explorer specific stylesheet.
|
// Load the Internet Explorer specific stylesheet.
|
||||||
wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20160816' );
|
wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20160816' );
|
||||||
|
@ -354,7 +354,7 @@ function twentysixteen_scripts() {
|
||||||
wp_enqueue_script( 'twentysixteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20160816' );
|
wp_enqueue_script( 'twentysixteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20160816' );
|
||||||
}
|
}
|
||||||
|
|
||||||
wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20160816', true );
|
wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20181230', true );
|
||||||
|
|
||||||
wp_localize_script( 'twentysixteen-script', 'screenReaderText', array(
|
wp_localize_script( 'twentysixteen-script', 'screenReaderText', array(
|
||||||
'expand' => __( 'expand child menu', 'twentysixteen' ),
|
'expand' => __( 'expand child menu', 'twentysixteen' ),
|
||||||
|
@ -370,7 +370,7 @@ add_action( 'wp_enqueue_scripts', 'twentysixteen_scripts' );
|
||||||
*/
|
*/
|
||||||
function twentysixteen_block_editor_styles() {
|
function twentysixteen_block_editor_styles() {
|
||||||
// Block styles.
|
// Block styles.
|
||||||
wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
|
wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
|
||||||
// Add custom fonts.
|
// Add custom fonts.
|
||||||
wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null );
|
wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null );
|
||||||
}
|
}
|
||||||
|
|
|
@ -256,7 +256,7 @@ function twentythirteen_scripts_styles() {
|
||||||
wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), '2013-07-18' );
|
wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), '2013-07-18' );
|
||||||
|
|
||||||
// Theme block stylesheet.
|
// Theme block stylesheet.
|
||||||
wp_enqueue_style( 'twentythirteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentythirteen-style' ), '2018-10-18' );
|
wp_enqueue_style( 'twentythirteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentythirteen-style' ), '2018-12-30' );
|
||||||
|
|
||||||
// Loads the Internet Explorer specific stylesheet.
|
// Loads the Internet Explorer specific stylesheet.
|
||||||
wp_enqueue_style( 'twentythirteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentythirteen-style' ), '2013-07-18' );
|
wp_enqueue_style( 'twentythirteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentythirteen-style' ), '2013-07-18' );
|
||||||
|
@ -296,7 +296,7 @@ add_filter( 'wp_resource_hints', 'twentythirteen_resource_hints', 10, 2 );
|
||||||
*/
|
*/
|
||||||
function twentythirteen_block_editor_styles() {
|
function twentythirteen_block_editor_styles() {
|
||||||
// Block styles.
|
// Block styles.
|
||||||
wp_enqueue_style( 'twentythirteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
|
wp_enqueue_style( 'twentythirteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '2018-12-30' );
|
||||||
// Add custom fonts.
|
// Add custom fonts.
|
||||||
wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null );
|
wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null );
|
||||||
}
|
}
|
||||||
|
|
|
@ -190,7 +190,7 @@ function twentytwelve_scripts_styles() {
|
||||||
wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() );
|
wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() );
|
||||||
|
|
||||||
// Theme block stylesheet.
|
// Theme block stylesheet.
|
||||||
wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20181018' );
|
wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20181230' );
|
||||||
|
|
||||||
// Loads the Internet Explorer specific stylesheet.
|
// Loads the Internet Explorer specific stylesheet.
|
||||||
wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20121010' );
|
wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20121010' );
|
||||||
|
@ -205,7 +205,7 @@ add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' );
|
||||||
*/
|
*/
|
||||||
function twentytwelve_block_editor_styles() {
|
function twentytwelve_block_editor_styles() {
|
||||||
// Block styles.
|
// Block styles.
|
||||||
wp_enqueue_style( 'twentytwelve-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
|
wp_enqueue_style( 'twentytwelve-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
|
||||||
// Add custom fonts.
|
// Add custom fonts.
|
||||||
wp_enqueue_style( 'twentytwelve-fonts', twentytwelve_get_font_url(), array(), null );
|
wp_enqueue_style( 'twentytwelve-fonts', twentytwelve_get_font_url(), array(), null );
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.0.3-alpha-44433';
|
$wp_version = '5.0.3-alpha-44434';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue