Skip to content

Commit 8f88823

Browse files
committed
Merge pull request #22 from ryanshoover/master
Add support for nested shortcodes
2 parents d426a84 + 7184cb1 commit 8f88823

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

readme.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: wpengine, markkelnar, stevenkword, stephenlin, ryanshoover, taylor
33
Tags: wpe, wpengine, geoip, localization, geolocation
44
Requires at least: 3.0.1
55
Tested up to: 4.2.2
6-
Stable tag: 1.1.1
6+
Stable tag: 1.1.2
77
License: GPLv2 or later
88
License URI: http://www.gnu.org/licenses/gpl-2.0.html
99

@@ -217,6 +217,7 @@ Please contact the WP Engine [Support Team](https://my.wpengine.com/support#gene
217217

218218
= 1.1.2 =
219219
- Fixes logic for nested parameter selectors in content shortcode
220+
- Now supports nested shortcodes. You can use shortcodes inside the [geoip-content] shortcode
220221

221222
= 1.1.1 =
222223
- Fixes logic for negated parameters in content shortcode

wpengine-geoip.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,12 @@ function do_shortcode_content( $atts, $content = null ) {
487487
}
488488
}
489489

490-
if( ! $keep )
490+
if( ! $keep ) {
491491
return '';
492+
}
493+
494+
// Process any shortcodes in the content
495+
$content = do_shortcode( $content );
492496

493497
return apply_filters( 'geoip_content', $content, $atts );
494498
}

0 commit comments

Comments
 (0)