Skip to content

Commit

Permalink
0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSteffanick committed May 1, 2019
1 parent 556d1f3 commit 38fd516
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 11 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 16 additions & 7 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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 */
Expand Down Expand Up @@ -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 <head> */
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 </body> */
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 </body> */
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 </body> */
Expand Down Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------------------------------------------------------------
Expand Down

0 comments on commit 38fd516

Please sign in to comment.