Skip to content

Commit

Permalink
2.3.35
Browse files Browse the repository at this point in the history
  • Loading branch information
cdukes committed Jul 7, 2016
1 parent 490aacd commit 76b5cac
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 5 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ grunt
- Disable some or all of the default Genesis theme option meta boxes (template, some disabled by default)

## Changelog
### 2.3.35 (July 7, 2016)
- `pre_get_posts` is an action, not a filter
- Higher specificity on `bfg_replace_login_logo()`
- Remove `wp_shortlink_wp_head()`
- Add `bfg_add_tinymce_plugins()` (disabled by default)

### 2.3.34 (June 28, 2016)
- Upgrade `jQuery` version to 3.0.0
- Add `jQuery` to bower and use this version for non-CDN fallback, instead of WP's version
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/admin-branding.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function bfg_login_headertitle() {
function bfg_replace_login_logo() {

?><style type="text/css">
.login h1 a {
body.login h1 a {
background-image: url(<?php echo get_stylesheet_directory_uri() ?>/build/images/login-logo.svg);

/* Adjust to the dimensions of your logo. WP Default: 80px 80px */
Expand Down
28 changes: 28 additions & 0 deletions includes/admin/admin-views.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,34 @@ function bfg_add_editor_style() {

}

// add_filter( 'mce_external_plugins', 'bfg_add_tinymce_plugins' );
/*
* Add a plugin script for TinyMCE
*
* @since 2.3.35
*/
function bfg_add_tinymce_plugins( $plugin_array ) {

$use_production_assets = genesis_get_option('bfg_production_on');
$use_production_assets = !empty($use_production_assets);

$assets_version = genesis_get_option('bfg_assets_version');
$assets_version = !empty($assets_version) ? absint($assets_version) : null;

$src = $use_production_assets ? '/build/js/tinymce.min.js' : '/build/js/tinymce.js';
$src = add_query_arg(
array(
'ver' => $assets_version,
),
$src
);

$plugin_array['bfg_admin'] = get_stylesheet_directory_uri() . $src;

return $plugin_array;

}

add_filter( 'tiny_mce_before_init', 'bfg_tiny_mce_before_init' );
/**
* Modifies the TinyMCE settings array.
Expand Down
1 change: 1 addition & 0 deletions includes/structure/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
remove_action( 'wp_head', 'wlwmanifest_link'); // WLW Manifest
// remove_action( 'wp_head', 'feed_links', 2 ); // Remove feed links
remove_action( 'wp_head', 'feed_links_extra', 3 ); // Remove comment feed links
remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 ); // Remove shortlink

// Remove WP-API <head> material
// See: https://wordpress.stackexchange.com/questions/211467/remove-json-api-links-in-header-html
Expand Down
7 changes: 4 additions & 3 deletions includes/structure/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function bfg_redirect_single_search_result() {

}

// add_filter( 'pre_get_posts', 'bfg_only_search_posts' );
// add_action( 'pre_get_posts', 'bfg_only_search_posts' );
/**
* Limit searching to just posts, excluding pages and CPTs.
*
Expand All @@ -60,10 +60,11 @@ function bfg_redirect_single_search_result() {
*/
function bfg_only_search_posts( $query ) {

if( is_admin() )
return;

if( $query->is_search ) {
$query->set( 'post_type', 'post' );
}

return $query;

}
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Tags: left-sidebar, right-sidebar, flexible-width, custom-menu, editor-style, featured-images, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments
Template: genesis
Template Version: 2.2.7
Template Version: 2.3.0
License: WTFPL
License URI: http://www.wtfpl.net/txt/copying/
Expand Down

0 comments on commit 76b5cac

Please sign in to comment.