diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dc3633..a9990bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ## [Unreleased] +## [0.11.0] - 2019-05-01 +### Changed +* [Bootstrap] CSS → 3.4.1 ([functions.php]) +* [Bootstrap] JS → 3.4.1 ([functions.php]) +* [jQuery] → 3.4.0 ([functions.php]) +* `theme_remove_gutenberg()` ([functions.php]) +* [WordPress] Twenty Twelve → 2.9 ([style.css]) + +### Removed +* [WordPress] Gutenberg features ([functions.php]) + ## [0.10.2] - 2018-06-13 ### Added * `@font-face` rules for FreeSerif → [style.css] @@ -380,7 +391,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p * [LISENCE] * [README.md] -[Unreleased]: https://github.com/AdamSteffanick/wp2012-s/compare/v0.10.2...HEAD +[Unreleased]: https://github.com/AdamSteffanick/wp2012-s/compare/v0.11.0...HEAD +[0.11.0]: https://github.com/AdamSteffanick/wp2012-s/compare/v0.10.2...v0.11.0 [0.10.2]: https://github.com/AdamSteffanick/wp2012-s/compare/v0.10.1...v0.10.2 [0.10.1]: https://github.com/AdamSteffanick/wp2012-s/compare/v0.10.0...v0.10.1 [0.10.0]: https://github.com/AdamSteffanick/wp2012-s/compare/v0.9.1...v0.10.0 diff --git a/README.md b/README.md index 9d1cae0..92bdcc7 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ A [WordPress] child theme of Twenty Twelve built for https://www.steffanick.com/ * [Web Font Loader] JS via [CDNJS] [CHANGELOG]: ./CHANGELOG.md -[version-badge]: https://img.shields.io/badge/wp2012--s-v0.10.2-0038e2.svg?style=flat-square +[version-badge]: https://img.shields.io/badge/wp2012--s-v0.11.0-0038e2.svg?style=flat-square [LICENSE]: ./LICENSE [license-badge]: https://img.shields.io/badge/license-GPL--2.0-0038e2.svg?style=flat-square diff --git a/functions.php b/functions.php index 14a937f..d4a7450 100644 --- a/functions.php +++ b/functions.php @@ -135,9 +135,15 @@ function theme_remove_emoji() { remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); /* remove TinyMCE emoji */ add_filter( 'tiny_mce_plugins', 'disable_emojicons_tinymce' ); - /* remove eomji DNS prefetch */ + /* remove emoji DNS prefetch */ add_filter( 'emoji_svg_url', '__return_false' ); } +/* remove WordPress Gutenberg features */ //https://stackoverflow.com/questions/52277629/remove-gutenberg-css +function theme_remove_gutenberg() { + /* all actions related to Gutenberg */ + wp_dequeue_style('wp-block-library'); + wp_dequeue_style('wp-block-library-theme'); +} /* remove support for older versions of Internet Explorer */ function theme_remove_old_ie_support() { /* remove ie.css */ @@ -156,7 +162,7 @@ function theme_add_style_property($link) { /* load bootstrap.min.css before style.css */ function theme_style() { /* enqueue Bootstrap CSS via a CDN */ - wp_enqueue_style('bootstrap', 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css', '', null, 'all'); + wp_enqueue_style('bootstrap', 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css', '', null, 'all'); /* register/enqueue Google Code Prettify CSS via a CDN */ wp_enqueue_style('google-code_prettify', 'https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.css', '', null, 'all'); /* remove style.css */ @@ -188,14 +194,14 @@ function theme_javascript() { /* remove local jQuery JavaScript */ wp_deregister_script('jquery-core'); /* register/enqueue jQuery JavaScript via a CDN in the */ - wp_enqueue_script('jquery-core', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js', '', null, false); + wp_enqueue_script('jquery-core', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.0/jquery.min.js', '', null, false); /* remove jQuery Migrate */ wp_deregister_script('jquery-migrate'); /* remove wp-embed.min.js */ wp_deregister_script('wp-embed'); } /* register/enqueue Bootstrap JavaScript via a CDN with jQuery dependency before */ - wp_enqueue_script('bootstrap', 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js', 'jquery-core', null, true); + wp_enqueue_script('bootstrap', 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js', 'jquery-core', null, true); /* register/enqueue navigation.js with jQuery dependency before */ wp_enqueue_script('twentytwelve-navigation', network_home_url('/', 'https') . 'wordpress/wp-content/themes/twentytwelve/js/navigation.js', 'jquery-core', null, true); /* register/enqueue scroll-affix.js with jQuery dependency before */ @@ -232,10 +238,13 @@ function theme_google_analytics() { add_action('wp_enqueue_scripts', 'theme_remove_old_ie_support', 11); add_action('wp_enqueue_scripts', 'theme_javascript'); -add_action( 'init', 'theme_remove_emoji' ); +add_action('init', 'theme_remove_emoji' ); + +add_filter('use_block_editor_for_post_type', '__return_false', 10); +add_action('wp_print_styles', 'theme_remove_gutenberg'); -add_action('after_setup_theme' , 'theme_cleaner'); -add_action('after_setup_theme' , 'theme_remove_xmlrpc'); +add_action('after_setup_theme', 'theme_cleaner'); +add_action('after_setup_theme', 'theme_remove_xmlrpc'); add_action('wp_footer', 'theme_webfonts'); add_action('wp_footer', 'theme_google_analytics'); diff --git a/style.css b/style.css index 0e4ea3d..105280b 100644 --- a/style.css +++ b/style.css @@ -5,12 +5,12 @@ Author: Adam Steffanick Author URI: https://www.steffanick.com/adam/ Description: A child theme of Twenty Twelve built for https://www.steffanick.com/ Template: twentytwelve -Version: 0.10.2 +Version: 0.11.0 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html */ -/* =Twenty Twelve 2.5 +/* =Twenty Twelve 2.9 -------------------------------------------------------------- /* =Notes --------------------------------------------------------------