diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b423ca7..56731967 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Genesis Sample Theme Changelog +## [3.0.1] - 2019-06-25 +* Use current theme name instead of 'genesis-sample' when enqueueing assets. This ensures assets continue to load if the theme is renamed. + ## [3.0.0] - 2019-06-19 Requires Genesis 3.0.0+. @@ -139,6 +142,7 @@ Requires Genesis 2.8.0+. * Set localization. * Update XML file. +[3.0.1]: https://github.com/studiopress/genesis-sample/compare/3.0.0...3.0.1 [3.0.0]: https://github.com/studiopress/genesis-sample/compare/2.10.0...3.0.0 [2.10.0]: https://github.com/studiopress/genesis-sample/compare/2.9.1...2.10.0 [2.9.1]: https://github.com/studiopress/genesis-sample/compare/2.9.0...2.9.1 diff --git a/languages/genesis-sample.pot b/languages/genesis-sample.pot index 9c9719d7..79373397 100644 --- a/languages/genesis-sample.pot +++ b/languages/genesis-sample.pot @@ -2,9 +2,9 @@ # This file is distributed under the GPL-2.0-or-later.=!> msgid "" msgstr "" -"Project-Id-Version: Genesis Sample 3.0.0\n" +"Project-Id-Version: Genesis Sample 3.0.1\n" "Report-Msgid-Bugs-To: StudioPress \n" -"POT-Creation-Date: 2019-06-17 13:33:45+00:00\n" +"POT-Creation-Date: 2019-06-24 16:51:49+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/lib/gutenberg/init.php b/lib/gutenberg/init.php index 4204459f..34b66252 100644 --- a/lib/gutenberg/init.php +++ b/lib/gutenberg/init.php @@ -17,7 +17,7 @@ function genesis_sample_enqueue_gutenberg_frontend_styles() { wp_enqueue_style( - 'genesis-sample-gutenberg', + genesis_get_theme_handle() . '-gutenberg', get_stylesheet_directory_uri() . '/lib/gutenberg/front-end.css', array( genesis_get_theme_handle() ), genesis_get_theme_version() @@ -36,7 +36,7 @@ function genesis_sample_block_editor_styles() { $appearance = genesis_get_config( 'appearance' ); wp_enqueue_style( - 'genesis-sample-gutenberg-fonts', + genesis_get_theme_handle() . '-gutenberg-fonts', $appearance['fonts-url'], array(), genesis_get_theme_version() diff --git a/lib/gutenberg/inline-styles.php b/lib/gutenberg/inline-styles.php index b73c75f0..95ce6371 100644 --- a/lib/gutenberg/inline-styles.php +++ b/lib/gutenberg/inline-styles.php @@ -85,7 +85,7 @@ function genesis_sample_custom_gutenberg_admin_css() { } CSS; - wp_add_inline_style( 'genesis-sample-gutenberg-fonts', $css ); + wp_add_inline_style( genesis_get_theme_handle() . '-gutenberg-fonts', $css ); } diff --git a/package.json b/package.json index 579471b8..4c7e7d08 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "description": "The sample child theme for the Genesis Framework.", "author": "StudioPress", "authoruri": "https://www.studiopress.com/", - "version": "3.0.0", + "version": "3.0.1", "tags": "one-column, two-columns, left-sidebar, right-sidebar, accessibility-ready, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready", "license": "GPL-2.0-or-later", "licenseuri": "https://www.gnu.org/licenses/gpl-2.0.html", diff --git a/style.css b/style.css index fa94109b..214122b3 100755 --- a/style.css +++ b/style.css @@ -5,7 +5,7 @@ Description: This is the sample theme created for the Genesis Framework. Author: StudioPress Author URI: https://www.studiopress.com/ -Version: 3.0.0 +Version: 3.0.1 Tags: accessibility-ready, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, left-sidebar, one-column, right-sidebar, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, two-columns, wide-blocks