Skip to content

Commit

Permalink
2.3.18
Browse files Browse the repository at this point in the history
  • Loading branch information
cdukes committed Sep 10, 2015
1 parent bf71045 commit a5470f5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 40 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.18 (September 10, 2015)
- Allow shortcodes in text widgets by default
- Turn on filters for `the_content_more_link`, `excerpt_more`, `get_the_content_more_link`, `genesis_prev_link_text`, and `genesis_next_link_text` by default
- Remove `bfg_letterspace_abbreviations` and `bfg_hard_space_expressions` - too many issues with HTML tags being broken
- Disable `img { width: auto; height: auto; }` by default

### 2.3.17 (September 3, 2015)
- Accessibility updates for Genesis 2.2
- Other CSS tweaks
Expand Down
42 changes: 5 additions & 37 deletions includes/structure/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function bfg_gallery_style( $css ) {
*/
// add_post_type_support( 'page', 'excerpt' );

// add_filter( 'the_content_more_link', 'bfg_more_tag_excerpt_link' );
add_filter( 'the_content_more_link', 'bfg_more_tag_excerpt_link' );
/**
* Customize the excerpt text, when using the <!--more--> tag.
*
Expand All @@ -35,8 +35,8 @@ function bfg_more_tag_excerpt_link() {

}

// add_filter( 'excerpt_more', 'bfg_truncated_excerpt_link' );
// add_filter( 'get_the_content_more_link', 'bfg_truncated_excerpt_link' );
add_filter( 'excerpt_more', 'bfg_truncated_excerpt_link' );
add_filter( 'get_the_content_more_link', 'bfg_truncated_excerpt_link' );
/**
* Customize the excerpt text, when using automatic truncation.
*
Expand Down Expand Up @@ -81,7 +81,7 @@ function bfg_post_meta() {

}

// add_filter ( 'genesis_prev_link_text' , 'bfg_prev_link_text' );
add_filter ( 'genesis_prev_link_text' , 'bfg_prev_link_text' );
/**
* Customize the post navigation prev text
* (Only applies to the 'Previous/Next' Post Navigation Technique, set in Genesis > Theme Options).
Expand All @@ -94,7 +94,7 @@ function bfg_prev_link_text( $text ) {

}

// add_filter ( 'genesis_next_link_text' , 'bfg_next_link_text' );
add_filter ( 'genesis_next_link_text' , 'bfg_next_link_text' );
/**
* Customize the post navigation next text
* (Only applies to the 'Previous/Next' Post Navigation Technique, set in Genesis > Theme Options).
Expand Down Expand Up @@ -172,35 +172,3 @@ function bfg_highlight_non_breaking_spaces( $content ) {
return str_replace('&nbsp;', '<mark title="' . __( 'Non-breaking space', CHILD_THEME_TEXT_DOMAIN ) . '">&nbsp;</mark>', $content);

}

// add_filter( 'the_content', 'bfg_letterspace_abbreviations' );
/*
* Letterspace all strings of capitals and small caps, and all long strings of digits
*
* See: http://webtypography.net/2.1.6
*
* @since 2.3.8
*/
function bfg_letterspace_abbreviations( $content ) {

$search = '/\b([A-Z][A-Z0-9]{2,})\b/';
$replace = '<abbr>$1</abbr>';
return preg_replace( $search, $replace, $content );

}

// add_filter( 'the_content', 'bfg_hard_space_expressions' );
/*
* Link short numerical and mathematical expressions with hard spaces
*
* See: http://webtypography.net/2.4.6
*
* @since 2.3.8
*/
function bfg_hard_space_expressions( $content ) {

$search = '/([0-9]) ([a-zA-Z])/';
$replace = '$1&nbsp;$2';
return preg_replace( $search, $replace, $content );

}
2 changes: 1 addition & 1 deletion includes/structure/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
* @since 2.0.0
*/
// add_filter( 'widget_text', 'do_shortcode' );
add_filter( 'widget_text', 'do_shortcode' );

add_action( 'wp_head', 'bfg_remove_recent_comments_widget_styles', 1 );
/**
Expand Down
4 changes: 2 additions & 2 deletions sass/_objects-and-images.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ figure {
}

img {
width: auto;
height: auto; // IE8 image height correct, so that img max-width: 100% doesn't produce disproportionate images
// width: auto;
// height: auto; // IE8 image height correct, so that img max-width: 100% doesn't produce disproportionate images
}

img.aligncenter,
Expand Down

0 comments on commit a5470f5

Please sign in to comment.